examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py/RandomCrop/__call__
class RandomCrop:    def __call__(self, image, target):
        image = pad_if_smaller(image, self.size)
        target = pad_if_smaller(target, self.size, fill=255)
        crop_params = transforms.RandomCrop.get_params(image, (self.size, self.size))
        image = functional.crop(image, *crop_params)
        target = functional.crop(target, *crop_params)
        return image, target