code: def apply_image(self, img):
      ret = cv2.warpAffine(
          img,
          self.mat,
          self.dsize,
          flags=self.interp,
          borderMode=self.borderMode,
          borderValue=self.borderValue,
      )
      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 WarpAffineTransform obj's underlying member method code with example usage: obj.apply_image(img) and returns: ret