code: def resize_image_type1(self, img):
      resize_h, resize_w = self.image_shape
      ori_h, ori_w = img.shape[:2]  # (h, w, c)
      ratio_h = float(resize_h) / ori_h
      ratio_w = float(resize_w) / ori_w
      img = cv2.resize(img, (int(resize_w), int(resize_h)))
      return img, [ratio_h, ratio_w]
  
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 3 for calling the DetResizeForTest obj's underlying member method code with example usage: obj.resize_image_type1(img) and returns: img,  list