code: def rotate_point(pt, angle_rad):
      """Rotate a point by an angle.
  
      Args:
          pt (list[float]): 2 dimensional point to be rotated
          angle_rad (float): rotation angle by radian
  
      Returns:
          list[float]: Rotated point.
      """
      assert len(pt) == 2
      sn, cs = np.sin(angle_rad), np.cos(angle_rad)
      new_x = pt[0] * cs - pt[1] * sn
      new_y = pt[0] * sn + pt[1] * cs
      rotated_pt = [new_x, new_y]
  
      return rotated_pt
  
imports: import numpy
  import cv2
  import copy
label_desc: Use image node_id 2 for calling a global function with example usage: rotate_point(pt, angle_rad) and returns: rotated_pt