class_docstr: TFRecordWriter Zlib test
class_docstr_tok: ["TFRecordWriter","Zlib","test"]
docstr: Verify that files produced are zlib compatible.
docstr_tok: ["Verify","that","files","produced","are","zlib","compatible","."]
code: def testZlibReadWrite(self):
      """Verify that files produced are zlib compatible."""
      original = [b"foo", b"bar"]
      fn = self._WriteRecordsToFile(
          original, "zlib_read_write.tfrecord"
      )
      zfn = self._ZlibCompressFile(fn, "zlib_read_write.tfrecord.z")
  
      # read the compressed contents and verify.
      options = tf_record.TFRecordOptions(TFRecordCompressionType.ZLIB)
      actual = list(tf_record.tf_record_iterator(zfn, options=options))
      self.assertEqual(actual, original)
  
imports: import gzip
  import os
  import random
  import string
  import zlib
  import six
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.lib.io import tf_record
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 2 for calling the TFRecordWriterZlibTest obj's underlying member method code with example usage: obj.testZlibReadWrite() without return types