code: def get_direction(src_point, rot_rad):
      sn, cs = np.sin(rot_rad), np.cos(rot_rad)
      src_result = [0, 0]
      src_result[0] = src_point[0] * cs - src_point[1] * sn
      src_result[1] = src_point[0] * sn + src_point[1] * cs
      return src_result
  
file_path: PaddleHub/modules/image/semantic_segmentation/ace2p/processor.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import os
  import time
  import base64
  import cv2
  import numpy
  from PIL import Image
label_desc: Use image node_id 5 for calling a global function with example usage: get_direction(src_point, rot_rad) and returns: src_result