code: def random_transform(
      translation=(-0.05, 0.05),
      rotation=(-2, 2),
      scale=(-0.1, 0.1),
      aniso=(-0.1, 0.1),
  ):
      dx = pyr.uniform(*translation)
      dy = pyr.uniform(*translation)
      angle = pyr.uniform(*rotation)
      angle = angle * np.pi / 180.0
      scale = 10 ** pyr.uniform(*scale)
      aniso = 10 ** pyr.uniform(*aniso)
      return dict(
          angle=angle, scale=scale, aniso=aniso, translation=(dx, dy)
      )
  
imports: import random
  from random import randint
  import numpy
  import cv2
label_desc: Use image node_id 2 for calling a global function with example usage: random_transform(translation, rotation, scale, aniso) and returns: dict