class_docstr: Resize the image to a target size.
code: def apply_segmentation(self, segmentation):
      segmentation = self.apply_image(
          segmentation, interp=Image.NEAREST
      )
      return segmentation
  
imports: import numpy
  import torch
  import torch.nn.functional
  from fvcore.transforms.transform import CropTransform, HFlipTransform, NoOpTransform, Transform, TransformList
  from PIL import Image
label_desc: Use image node_id 4 for calling the ResizeTransform obj's underlying member method code with example usage: obj.apply_segmentation(segmentation) and returns: segmentation