random resized crop does have a shape parameter
torchvision.transforms.RandomResizedCrop(size, scale=(0.08, 1.0), ratio=(0.75, 1.3333333333333333), interpolation=2)

The size parameter is the same thing so you can just put the values in there. So like this
torchvision.transforms.RandomResizedCrop((256,480))