code: def normalizeRounding(value):
      
      if not isinstance(value, (int, float)):
          raise TypeError("Value to round must be an int or float, not %s."
                          % type(value).__name__)
      return round3(value)
docs: Normalizes rounding.
  
      Python 2 and Python 3 handing the rounding of halves (0.5, 1.5, etc)
      differently. This normalizes rounding to be the same (Python 3 style)
      in both environments.
  
      * **value** must be an :ref:`type-int-float`
      * Returned value is a ``int``