def METHOD_NAME(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)