code: def __init__(self, *args, **kwargs):
      min_size = kwargs["min_size"]
      max_size = kwargs["max_size"]
      if not isinstance(min_size, (list, tuple)):
          min_size = (min_size,)
      self.min_size = min_size
      self.max_size = max_size
  
imports: import collections
  import math
  import random
  import warnings
  import torch
  from mmf.common.constants import INCEPTION_IMAGE_NORMALIZE
  from mmf.common.registry import registry
  from mmf.datasets.processors.processors import BaseProcessor
  from omegaconf import OmegaConf
  from torchvision import transforms
  from torchvision.transforms import Compose, Normalize, Resize, ToTensor
label_desc: Use image node_id 1 to create a new ResizeShortest object from inherited base classes: BaseProcessor with example: obj = ResizeShortest()