examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py/RandomResize/__call__
class RandomResize:    def __call__(self, image, target):
        size = random.randint(self.min_size, self.max_size)
        image = functional.resize(image, size)
        target = functional.resize(target, size, interpolation=transforms.InterpolationMode.NEAREST)
        return image, target