code: def _normalize_angle(x, limit):
      """
      Normalize angle `x` to be within `[-limit; limit)` range.
      """
      double_limit = limit * 2.0
      modulo = (
          fmod(x, double_limit) or 0.0
      )  # `or 0` is to turn -0 to +0.
      if modulo < -limit:
          return modulo + double_limit
      if modulo >= limit:
          return modulo - double_limit
      return modulo
  
imports: import collections.abc
  import re
  import warnings
  from itertools import islice
  from math import fmod, isfinite
  from geopy import units, util
  from geopy.format import DEGREE, DOUBLE_PRIME, PRIME, format_degrees, format_distance
label_desc: Use image node_id 1 for calling a global function with example usage: _normalize_angle(x, limit) and returns: modulo, unknown, unknown