code: def _rotation(point, center, angle):
      if angle == 0:
          return point
      x, y = point[0]
      cx, cy = center[0]
      radian = math.radians(abs(angle))
      if angle > 0:  # clockwise
          rx = (
              (x - cx) * math.cos(radian)
              - (y - cy) * math.sin(radian)
              + cx
          )
          ry = (
              (x - cx) * math.sin(radian)
              + (y - cy) * math.cos(radian)
              + cy
          )
      else:
          rx = (
              (x - cx) * math.cos(radian)
              + (y - cy) * math.sin(radian)
              + cx
          )
          ry = (
              (y - cy) * math.cos(radian)
              - (x - cx) * math.sin(radian)
              + cy
          )
      return np.array([[rx, ry]])
  
file_path: PaddleSeg/EISeg/eiseg/util/regularization/rs_regularization.py
imports: import math
  import cv2
  import numpy
  from .utils import calc_distance
label_desc: Use image node_id 8 for calling a global function with example usage: _rotation(point, center, angle) and returns: np, point