code: def testWriteGZIP(self):
      options = tf_record.TFRecordOptions(
          tf_record.TFRecordCompressionType.GZIP
      )
      self.evaluate(
          self.writer_fn(
              self._createFile(options), compression_type="GZIP"
          )
      )
      for i, r in enumerate(
          tf_record.tf_record_iterator(
              self._outputFilename(), options=options
          )
      ):
          self.assertAllEqual(self._record(i), r)
  
imports: import os
  from absl.testing import parameterized
  from tensorflow.python.data.experimental.ops import grouping
  from tensorflow.python.data.experimental.ops import writers
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.ops import readers
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.lib.io import python_io
  from tensorflow.python.lib.io import tf_record
  from tensorflow.python.ops import string_ops
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 9 for calling the TFRecordWriterTest obj's underlying member method code with example usage: obj.testWriteGZIP() without return types