code: def testDontRerandomizeOnReplicate(self, reshuffle):
      random_seed.set_random_seed(None)
      # Since the seed generator configuration is preserved across serialization
      # of the dataset, each instantiation of the shuffle dataset
      # should preserve the shuffle order if reshuffle=False. To preserve the
      # shuffle order, the original dataset must be kept alive, since if the
      # original dataset was destroyed, its seeds would also be destroyed.
      num_elements = 100
      dataset_1 = dataset_ops.Dataset.range(num_elements)
      dataset_2 = dataset_1.shuffle(
          num_elements, reshuffle_each_iteration=reshuffle
      )
  
      shuffle_1 = self.getDatasetOutput(dataset_2)
      dataset_3 = self.graphRoundTrip(dataset_2, allow_stateful=True)
      shuffle_2 = self.getDatasetOutput(dataset_3)
  
      self.assertCountEqual(shuffle_1, shuffle_2)
      if reshuffle:
          self.assertNotEqual(shuffle_1, shuffle_2)
  
imports: import collections
  import functools
  import sys
  from absl.testing import parameterized
  import numpy
  from tensorflow.python import pywrap_sanitizers
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_management
  from tensorflow.python.data.experimental.ops import iterator_ops
  from tensorflow.python.data.experimental.ops import random_access
  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.eager import def_function
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import check_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 19 for calling the ShuffleTest obj's underlying member method code with example usage: obj.testDontRerandomizeOnReplicate(reshuffle) without return types