def _shallow_clone_dataset(self: TAvalancheDataset) -> TAvalancheDataset:
        """Clone dataset.
        This is a shallow copy, i.e. the data attributes are not copied.
        """
        dataset_copy = copy.copy(self)
        dataset_copy._flat_data = self._flat_data._shallow_clone_dataset()
        return dataset_copy
Clone dataset.
        This is a shallow copy, i.e. the data attributes are not copied.
        
avalanche/benchmarks/utils/data.py