code: def normalize_angle(theta):
      """Normalize an angle theta to theta_norm so that: 0 <= theta_norm < 2 * np.pi"""
      twopi = 2 * np.pi
  
      if theta >= twopi:
          m = math.floor(theta / twopi)
          if theta / twopi - m > 0.99999:  # account for rounding errors
              m += 1
          theta_norm = theta - m * twopi
      elif theta < 0:
          m = math.ceil(theta / twopi)
          if (
              theta / twopi - m < -0.99999
          ):  # account for rounding errors
              m -= 1
          theta_norm = abs(theta - m * twopi)
      else:
          theta_norm = theta
  
      return theta_norm
  
file_path: pdftabextract/pdftabextract/geom.py
imports: import math
  import numpy
label_desc: Use image node_id 13 for calling a global function with example usage: normalize_angle(theta) and returns: theta_norm