Hey @bioinfo-dirty-jobs,
You can use the transforms in TorchIO 96:
import torchio.transforms as transforms

transformations = transform_train = transforms.Compose([
    transforms.ToCanonical(),
    transforms.RandomFlip(),
])