Functional random_crop

how can i do the random crop using functional ?
https://pytorch.org/docs/stable/torchvision/transforms.html#torchvision.transforms.RandomCrop

Have a look at the implementation to get a good idea, how the random cropping is applied internally.