examples/pytorch/semantic-segmentation/run_semantic_segmentation.py/Resize/__call__
class Resize:    def __call__(self, image, target):
        image = functional.resize(image, self.size)
        target = functional.resize(target, self.size, interpolation=transforms.InterpolationMode.NEAREST)
        return image, target