code: def testReshuffleEachIteration(self, reshuffle_each_iteration):
      # Assert that `reshuffle_each_iteration` controls whether data is shuffled
      # differently across different epochs.
      dataset = self._build_dataset(
          seed=42, reshuffle_each_iteration=reshuffle_each_iteration
      )
      shuffled_elements_1 = self.getDatasetOutput(dataset)
      shuffled_elements_2 = self.getDatasetOutput(dataset)
      if reshuffle_each_iteration:
          self.assertNotEqual(shuffled_elements_1, shuffled_elements_2)
          self.assertAllEqual(
              sorted(shuffled_elements_1), sorted(shuffled_elements_2)
          )
      else:
          self.assertAllEqual(shuffled_elements_1, shuffled_elements_2)
  
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.data.ops import options
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 7 for calling the IndexShuffleTest obj's underlying member method code with example usage: obj.testReshuffleEachIteration(reshuffle_each_iteration) without return types