def freeze_transforms(self: TAvalancheDataset) -> TAvalancheDataset:
        """Returns a new dataset with the transformation groups frozen."""
        datacopy = self._shallow_clone_dataset()
        datacopy._flat_data = datacopy._flat_data.freeze_transforms()
        return datacopy
Returns a new dataset with the transformation groups frozen.
avalanche/benchmarks/utils/data.py