code: def affine_transform(pt, t):
      new_pt = np.array([pt[0], pt[1], 1.0]).T
      new_pt = np.dot(t, new_pt)
      return new_pt[:2]
  
imports: import cv2
  import numpy
  import paddle.nn.functional
label_desc: Use image node_id 8 for calling a global function with example usage: affine_transform(pt, t) and returns: new_pt