class_docstr: Base class for TFRecord-based tests.
code: def _writeFile(self, name, data):
      filename = os.path.join(self.get_temp_dir(), name)
      writer = python_io.TFRecordWriter(filename)
      for d in data:
          writer.write(compat.as_bytes(str(d)))
      writer.close()
      return filename
  
imports: import os
  from tensorflow.core.example import example_pb2
  from tensorflow.core.example import feature_pb2
  from tensorflow.python.data.experimental.ops import readers
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import readers
  from tensorflow.python.framework import dtypes
  from tensorflow.python.lib.io import python_io
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.util import compat
label_desc: Use image node_id 7 for calling the TFRecordTestBase obj's underlying member method code with example usage: obj._writeFile(name, data) and returns: filename