class_docstr: resize image by target_size and max_size
  Args:
      arch (str): model type
      target_size (int): the target size of image
      max_size (int): the max size of image
      use_cv2 (bool): whether us cv2
      image_shape (list): input shape of model
      interp (int): method of resize
code: def __init__(
      self,
      target_size=800,
      max_size=1333,
      use_cv2=True,
      image_shape=None,
      interp=cv2.INTER_LINEAR,
      resize_box=False,
  ):
      self.target_size = target_size
      self.max_size = max_size
      self.image_shape = image_shape
      self.use_cv2 = use_cv2
      self.interp = interp
  
imports: import cv2
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 to create a new Resize object from inherited base classes: object with example: obj = Resize(target_size, max_size, use_cv2, image_shape, interp, resize_box)