code: def test_shuffle(self):
      # Test cross-epoch random order and seed determinism
      data = np.arange(10)
      targets = data * 2
      dataset = timeseries_dataset_utils.timeseries_dataset_from_array(
          data,
          targets,
          sequence_length=5,
          batch_size=1,
          shuffle=True,
          seed=123,
      )
      first_seq = None
      for x, y in dataset.take(1):
          self.assertNotAllClose(x, np.arange(0, 5))
          self.assertAllClose(x[:, 0] * 2, y)
          first_seq = x
      # Check that a new iteration with the same dataset yields different
      # results
      for x, _ in dataset.take(1):
          self.assertNotAllClose(x, first_seq)
      # Check determism with same seed
      dataset = timeseries_dataset_utils.timeseries_dataset_from_array(
          data,
          targets,
          sequence_length=5,
          batch_size=1,
          shuffle=True,
          seed=123,
      )
      for x, _ in dataset.take(1):
          self.assertAllClose(x, first_seq)
  
file_path: keras/keras/utils/timeseries_dataset_utils_test.py
imports: import numpy
  from keras import testing
  from keras.utils import timeseries_dataset_utils
label_desc: Use image node_id 4 for calling the TimeseriesDatasetTest obj's underlying member method code with example usage: obj.test_shuffle() without return types