class_docstr: TFRecordWriter close and flush tests
class_docstr_tok: ["TFRecordWriter","close","and","flush","tests"]
code: def setUp(self, compression_type=TFRecordCompressionType.NONE):
      super(TFRecordWriterCloseAndFlushTests, self).setUp()
      self._fn = os.path.join(
          self.get_temp_dir(), "tf_record_writer_test.txt"
      )
      self._options = tf_record.TFRecordOptions(compression_type)
      self._writer = tf_record.TFRecordWriter(self._fn, self._options)
      self._num_records = 20
  
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 1 for calling the TFRecordWriterCloseAndFlushTests obj's underlying member method code with example usage: obj.setUp(compression_type) without return types