Suppose I have two Compose transforms as such
transform1 = transforms.Compose([
    transforms.RandomRotation(10),
    transforms.ColorJitter(),
])

transform2 = transforms.Compose([
     transforms.RandomGrayscale(),
     transforms.RandomHorizontalFlip(),
])

How could I perform the following?
final_transform = transforms.Compose([transform1, transform2)