code: def transpred(kpts, h, w, s):
      trans, _ = get_affine_mat_kernel(h, w, s, inv=True)
  
      return warp_affine_joints(kpts[..., :2].copy(), trans)
  
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 1 for calling a global function with example usage: transpred(kpts, h, w, s) and returns: warp_affine_joints