code: def testRead(
      self,
      batch_size,
      num_epochs,
      file_index,
      num_parallel_reads,
      drop_final_batch,
      parser_fn,
  ):
      if file_index is None:
          file_pattern = self._filenames
      else:
          file_pattern = self._filenames[file_index]
  
      if parser_fn:
          fn = lambda x: string_ops.substr(x, 1, 999)
      else:
          fn = None
  
      outputs = self.getNext(
          readers.make_tf_record_dataset(
              file_pattern=file_pattern,
              num_epochs=num_epochs,
              batch_size=batch_size,
              parser_fn=fn,
              num_parallel_reads=num_parallel_reads,
              drop_final_batch=drop_final_batch,
              shuffle=False,
          )
      )
      self._verify_records(
          outputs,
          batch_size,
          file_index,
          num_epochs=num_epochs,
          interleave_cycle_length=num_parallel_reads,
          drop_final_batch=drop_final_batch,
          use_parser_fn=parser_fn,
      )
      with self.assertRaises(errors.OutOfRangeError):
          self.evaluate(outputs())
  
file_path: tensorflow/tensorflow/python/data/experimental/kernel_tests/make_tf_record_dataset_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.data.experimental.ops import readers
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.kernel_tests import tf_record_test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.ops import string_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the MakeTFRecordDatasetTest obj's underlying member method code with example usage: obj.testRead(batch_size, num_epochs, file_index, num_parallel_reads, drop_final_batch, parser_fn) without return types