code: def __call__(self, data):
      img = deepcopy(data)
      src_h, src_w, _ = img.shape
  
      if self.resize_type == 0:
          img, [ratio_h, ratio_w] = self.resize_image_type0(img)
      elif self.resize_type == 2:
          img, [ratio_h, ratio_w] = self.resize_image_type2(img)
      else:
          img, [ratio_h, ratio_w] = self.resize_image_type1(img)
  
      return img
  
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 2 for calling the DetResizeForTest obj's underlying member method code with example usage: obj.__call__(data) and returns: img