code: def test_round_trip_fastq(self, test_datum_name):
      # Round-trip FASTQ records through writing and reading:
      # 1. Read records v1 from FastqReader;
      # 2. Write v1 to fastq using our FastqWriter;
      # 3. Read back in using FastqReader -- v2;
      # 4. compare v1 and v2.
      in_file = test_utils.genomics_core_testdata(test_datum_name)
      out_file = test_utils.test_tmpfile("output_" + test_datum_name)
  
      v1_reader = fastq.FastqReader(in_file)
      v1_records = list(v1_reader.iterate())
      self.assertTrue(v1_records, "Reader failed to find records")
  
      writer_options = fastq_pb2.FastqWriterOptions()
  
      with fastq_writer.FastqWriter.to_file(
          out_file, writer_options
      ) as writer:
          for record in v1_records:
              writer.write(record)
  
      v2_reader = fastq.FastqReader(out_file)
      v2_records = list(v2_reader.iterate())
      self.assertEqual(
          v1_records,
          v2_records,
          "Round-tripped FASTQ files not as expected",
      )
  
file_path: deepvariant/third_party/nucleus/io/python/fastq_writer_wrap_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  from absl.testing import parameterized
  from etils import epath
  from third_party.nucleus.io import fastq
  from third_party.nucleus.io import tfrecord
  from third_party.nucleus.io.python import fastq_writer
  from third_party.nucleus.protos import fastq_pb2
  from third_party.nucleus.testing import test_utils
label_desc: Use image node_id 1 for calling the WrapFastqWriterRoundTripTests obj's underlying member method code with example usage: obj.test_round_trip_fastq(test_datum_name) without return types