code: def testRerandomizeEachIterationEpochsIgnored(self, rerandomize):
      with warnings.catch_warnings(record=True) as w:
          dataset = dataset_ops.Dataset.random(
              seed=42,
              rerandomize_each_iteration=rerandomize,
              name="random",
          ).take(10)
      first_epoch = self.getDatasetOutput(
          dataset, requires_initialization=True
      )
      second_epoch = self.getDatasetOutput(
          dataset, requires_initialization=True
      )
      if rerandomize:
          if not tf2.enabled() and rerandomize:
              found_warning = False
              for warning in w:
                  if (
                      "In TF 1, the `rerandomize_each_iteration=True` option"
                      in str(warning)
                  ):
                      found_warning = True
                      break
              self.assertTrue(found_warning)
  
      self.assertEqual(first_epoch, second_epoch)
  
imports: import warnings
  from absl.testing import parameterized
  from tensorflow.python import tf2
  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.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import random_seed
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the RandomTest obj's underlying member method code with example usage: obj.testRerandomizeEachIterationEpochsIgnored(rerandomize) without return types