code: def testInfiniteOutputs(self):
      # Asserting the iterator is exhausted after producing 100 items should fail.
      with self.assertRaises(AssertionError):
          self._gen_outputs(lambda: self._build_ds(10, count=None), 100)
      with self.assertRaises(AssertionError):
          self._gen_outputs(lambda: self._build_ds(10, count=-1), 100)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.data.experimental.ops import shuffle_ops
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import random_seed
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the ShuffleAndRepeatTest obj's underlying member method code with example usage: obj.testInfiniteOutputs() without return types