code: def __init__(self, **kwargs):
      super(DetResizeForTest, self).__init__()
      self.resize_type = 0
      if "image_shape" in kwargs:
          self.image_shape = kwargs["image_shape"]
          self.resize_type = 1
      elif "limit_side_len" in kwargs:
          self.limit_side_len = kwargs["limit_side_len"]
          self.limit_type = kwargs.get("limit_type", "min")
      elif "resize_short" in kwargs:
          self.limit_side_len = 736
          self.limit_type = "min"
      else:
          self.resize_type = 2
          self.resize_long = kwargs.get("resize_long", 960)
  
imports: import cv2
  import copy
  import numpy
  import math
  import re
  import sys
  import argparse
  import string
  from copy import deepcopy
  from argparse import ArgumentParser, RawDescriptionHelpFormatter
  import yaml
label_desc: Use image node_id 1 to create a new DetResizeForTest object from inherited base classes: object with example: obj = DetResizeForTest()