def test_copy(synthetic_dataset: SyntheticAnomalyDataset) -> None:
        """Tests if the dataset is copied correctly, and files still exist after original instance is deleted."""
        synthetic_dataset_cp = copy(synthetic_dataset)
        assert all(synthetic_dataset.samples == synthetic_dataset_cp.samples)
        del synthetic_dataset
        assert synthetic_dataset_cp.root.exists()
Tests if the dataset is copied correctly, and files still exist after original instance is deleted.
tests/unit/data/utils/test_synthetic.py