code: def testRead(self, batch_size, num_epochs):
      # Basic test: read from file 0.
      self.outputs = self.getNext(
          self.make_batch_feature(
              filenames=self._filenames[0],
              label_key="label",
              num_epochs=num_epochs,
              batch_size=batch_size,
          )
      )
      self._verify_records(
          batch_size, 0, num_epochs=num_epochs, label_key_provided=True
      )
      with self.assertRaises(errors.OutOfRangeError):
          self._next_actual_batch(label_key_provided=True)
  
          # Basic test: read from file 1.
      self.outputs = self.getNext(
          self.make_batch_feature(
              filenames=self._filenames[1],
              label_key="label",
              num_epochs=num_epochs,
              batch_size=batch_size,
          )
      )
      self._verify_records(
          batch_size, 1, num_epochs=num_epochs, label_key_provided=True
      )
      with self.assertRaises(errors.OutOfRangeError):
          self._next_actual_batch(label_key_provided=True)
  
      # Basic test: read from both files.
      self.outputs = self.getNext(
          self.make_batch_feature(
              filenames=self._filenames,
              label_key="label",
              num_epochs=num_epochs,
              batch_size=batch_size,
          )
      )
      self._verify_records(
          batch_size, num_epochs=num_epochs, label_key_provided=True
      )
      with self.assertRaises(errors.OutOfRangeError):
          self._next_actual_batch(label_key_provided=True)
      # Basic test: read from both files.
      self.outputs = self.getNext(
          self.make_batch_feature(
              filenames=self._filenames,
              num_epochs=num_epochs,
              batch_size=batch_size,
          )
      )
      self._verify_records(batch_size, num_epochs=num_epochs)
      with self.assertRaises(errors.OutOfRangeError):
          self._next_actual_batch()
  
imports: from absl.testing import parameterized
  import numpy
  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.ops import readers
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import io_ops
  from tensorflow.python.ops import parsing_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the MakeBatchedFeaturesDatasetTest obj's underlying member method code with example usage: obj.testRead(batch_size, num_epochs) without return types