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