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: from scipy.optimize import linear_sum_assignment
  from collections import abc, defaultdict
  import cv2
  import numpy
  import math
  import paddle
  import paddle.nn
  from keypoint_preprocess import get_affine_mat_kernel, get_affine_transform
label_desc: Use image node_id 4 for calling a global function with example usage: affine_transform(pt, t) and returns: new_pt