code: def distort_with_noise(image, deltas, order=1):
      assert deltas.shape[0] == 2
      assert image.shape[:2] == deltas.shape[1:], (
          image.shape,
          deltas.shape,
      )
      n, m = image.shape[:2]
      xy = np.transpose(
          np.array(np.meshgrid(range(n), range(m))), axes=[0, 2, 1]
      )
      deltas += xy
      return cv.remap(
          image,
          deltas[1].astype(np.float32),
          deltas[0].astype(np.float32),
          cv.INTER_LINEAR,
          borderMode=cv.BORDER_REFLECT,
      )
  
imports: import random
  from random import randint
  import numpy
  import cv2
label_desc: Use image node_id 6 for calling a global function with example usage: distort_with_noise(image, deltas, order) and returns: cv