code: def __init__(self, sizes, max_size=None):
      assert isinstance(sizes, (list, tuple))
      self.sizes = sizes
      self.max_size = max_size
  
imports: import random
  import PIL
  import torch
  import torchvision.transforms
  import torchvision.transforms.functional
  from util.box_ops import box_xyxy_to_cxcywh
  from util.misc import interpolate
label_desc: Use image node_id 1 to create a new RandomResize object from inherited base classes: object with example: obj = RandomResize(sizes, max_size)