class_docstr: resize image by target_size and max_size
  Args:
      target_size (int): the target size of image
      keep_ratio (bool): whether keep_ratio or not, default true
      interp (int): method of resize
class_docstr_tok: ["resize","image","by","target_size","and","max_size","Args",":","target_size","(","int",")",":","the","target","size","of","image","keep_ratio","(","bool",")",":","whether","keep_ratio","or","not",",","default","true","interp","(","int",")",":","method","of","resize"]
code: def __init__(
      self, target_size, keep_ratio=True, interp=cv2.INTER_LINEAR
  ):
      if isinstance(target_size, int):
          target_size = [target_size, target_size]
      self.target_size = target_size
      self.keep_ratio = keep_ratio
      self.interp = interp
  
imports: import cv2
  import numpy
  import imgaug.augmenters
  from keypoint_preprocess import get_affine_transform
  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, keep_ratio, interp)