class_docstr: Resize the image.
class_docstr_tok: ["Resize","the","image","."]
code: def apply_image(self, img):
      assert img.shape[:2] == (self.h, self.w)
      ret = cv2.resize(
          img, (self.new_w, self.new_h), interpolation=self.interp
      )
      if img.ndim == 3 and ret.ndim == 2:
          ret = ret[:, :, np.newaxis]
      return ret
  
imports: import numpy
  import cv2
  from ...utils.argtools import log_once
  from .base import ImageAugmentor, _default_repr
label_desc: Use image node_id 2 for calling the ResizeTransform obj's underlying member method code with example usage: obj.apply_image(img) and returns: ret