code: def get_dir(point, rot_rad):
      sin_rot, cos_rot = np.sin(rot_rad), np.cos(rot_rad)
  
      result = [0, 0]
      result[0] = point[0] * cos_rot - point[1] * sin_rot
      result[1] = point[0] * sin_rot + point[1] * cos_rot
  
      return np.array(result)
  
imports: import cv2
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: get_dir(point, rot_rad) and returns: np