code: def _calc_azimuth(p1, p2):
      x1, y1 = p1[0]
      x2, y2 = p2[0]
      if y1 == y2:
          return 0.0
      if x1 == x2:
          return 90.0
      elif x1 < x2:
          if y1 < y2:
              ang = math.atan((y2 - y1) / (x2 - x1))
              return math.degrees(ang)
          else:
              ang = math.atan((y1 - y2) / (x2 - x1))
              return 180 - math.degrees(ang)
      else:  # x1 > x2
          if y1 < y2:
              ang = math.atan((y2 - y1) / (x1 - x2))
              return 180 - math.degrees(ang)
          else:
              ang = math.atan((y1 - y2) / (x1 - x2))
              return math.degrees(ang)
  
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 7 for calling a global function with example usage: _calc_azimuth(p1, p2) and returns: int, int, math, unknown, unknown, math