code: def __init__(
      self, size: Union[int, List[int]], resize_mask: bool = True
  ):
      self.size = size  # [h, w]
      self.resize_mask = resize_mask
  
imports: import random
  from typing import List, Union
  from torchvision.transforms import functional
  from torchvision.transforms import transforms
label_desc: Use image node_id 1 to create a new Resize object from inherited base classes: object with example: obj = Resize(size, resize_mask)