code: def gen_transform(angle, zoom, dst_cx, dst_cy, src_cx, src_cy):
      t1 = np.array([[1, 0, -dst_cx], [0, 1, -dst_cy], [0, 0, 1]])
      cosa = math.cos(angle) / zoom
      sina = math.sin(angle) / zoom
      r = np.array([[cosa, -sina, 0], [sina, cosa, 0], [0, 0, 1]])
      t2 = np.array([[1, 0, src_cx], [0, 1, src_cy], [0, 0, 1]])
      return (np.matmul(t2, np.matmul(r, t1)))[0:2, 0:3]
  
imports: import nose_utils
  from nvidia.dali.pipeline import Pipeline
  import nvidia.dali.ops
  import nvidia.dali.fn
  import nvidia.dali.types
  import numpy
  import math
  import os
  import cv2
  from sequences_test_utils import video_suite_helper, SampleDesc, ArgCb
  from test_utils import compare_pipelines
  import random
label_desc: Use image node_id 1 for calling a global function with example usage: gen_transform(angle, zoom, dst_cx, dst_cy, src_cx, src_cy) and returns: np