docs: def _normalize_angle(angle, range, step):
      """Finds an angle that matches the given one modulo step.
  
      Increments and decrements the given value with a given step.
  
      Args:
          range: a 2-tuple of min and max target values.
          step: tuning step.
  
      Returns:
          Normalized value within a given range.
      """
      while angle <= range[0]:
          angle += step
      while angle >= range[1]:
          angle -= step
      return angle