def remove_current_transform_group(self):
        """Recursively remove transformation groups from dataset tree."""
        datacopy = self._shallow_clone_dataset()
        fdata = datacopy._flat_data
        datacopy._flat_data = fdata.remove_current_transform_group()
        return datacopy
Recursively remove transformation groups from dataset tree.
avalanche/benchmarks/utils/data.py