code: def __init__(self, target_size):
      self.image_transform = Compose(
          [Resize((target_size, target_size)), ToTensor()]
      )
      self.mask_transform = Compose(
          [
              Resize(
                  (target_size, target_size),
                  interpolation=PIL.Image.NEAREST,
              ),
              ToTensor(),
          ]
      )
  
file_path: pytorch-meta/torchmeta/transforms/target_transforms.py
imports: from torchvision.transforms import Compose, Resize, ToTensor
  import PIL
label_desc: Use image node_id 1 to create a new SegmentationPairTransform object from inherited base classes: object with example: obj = SegmentationPairTransform(target_size)