code: def transform_image(
      image,
      angle=0.0,
      scale=1.0,
      aniso=1.0,
      translation=(0, 0),
      order=1,
  ):
      dx, dy = translation
      scale = 1.0 / scale
      c = np.cos(angle)
      s = np.sin(angle)
      sm = np.array([[scale / aniso, 0], [0, scale * aniso]], "f")
      m = np.array([[c, -s], [s, c]], "f")
      m = np.dot(sm, m)
      w, h = image.shape
      c = np.array([w, h]) / 2.0
      d = c - np.dot(m, c) + np.array([dx * w, dy * h])
      M = np.hstack((m, d))
      return cv.warpAffine(
          image.astype(np.dtype("f")),
          M,
          (w, h),
          flags=(cv.INTER_LINEAR),
          borderMode=cv.BORDER_REPLICATE,
      )
  
imports: import random
  from random import randint
  import numpy
  import cv2
label_desc: Use image node_id 3 for calling a global function with example usage: transform_image(image, angle, scale, aniso, translation, order) and returns: cv