code: def transform_preds(coords, center, scale, output_size):
      target_coords = np.zeros(coords.shape)
      trans = get_affine_transform(
          center, scale * 200, 0, output_size, inv=1
      )
      for p in range(coords.shape[0]):
          target_coords[p, 0:2] = affine_transform(
              coords[p, 0:2], trans
          )
      return target_coords
  
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 3 for calling a global function with example usage: transform_preds(coords, center, scale, output_size) and returns: target_coords