def test_deepcopy():
    """Tests that deepcopy works with the ``SplitDataset``."""
    dataset = list(range(100))
    train_ds, val_ds = DataModule._split_train_val(dataset, val_split=0.1)
    deepcopy(train_ds)
Tests that deepcopy works with the ``SplitDataset``.
tests/core/data/test_splits.py