class_docstr: TFRecordIterator test
class_docstr_tok: ["TFRecordIterator","test"]
docstr: Verify compression with TFRecordWriter is zlib library compatible.
docstr_tok: ["Verify","compression","with","TFRecordWriter","is","zlib","library","compatible","."]
code: def testWriteZlibRead(self):
      """Verify compression with TFRecordWriter is zlib library compatible."""
      original = [b"foo", b"bar"]
      options = tf_record.TFRecordOptions(TFRecordCompressionType.ZLIB)
      fn = self._WriteRecordsToFile(
          original, "write_zlib_read.tfrecord.z", options
      )
  
      zfn = self._ZlibDecompressFile(fn, "write_zlib_read.tfrecord")
      actual = list(tf_record.tf_record_iterator(zfn))
      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 3 for calling the TFRecordIteratorTest obj's underlying member method code with example usage: obj.testWriteZlibRead() without return types