code: def transform_points(
      points, center, scale, output_size, inverse=False
  ):
      transform = get_affine_transform(
          center, scale, 0, output_size, inverse=inverse
      )
  
      new_points = np.concatenate(
          [points, np.ones([points.shape[0], 1])], axis=1
      )
      points_transformed = np.dot(transform, new_points.T).T
      return points_transformed
  
imports: import cv2
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: transform_points(points, center, scale, output_size, inverse) and returns: points_transformed