code: def normal_round_int(x: float) -> int:
      
      if not math.isfinite(x):
          raise ValueError("Input to normal_round_int() is not finite")
      if x >= 0:
          # noinspection PyTypeChecker
          return math.floor(x + 0.5)
      else:
          # noinspection PyTypeChecker
          return math.ceil(x - 0.5)
docs: Version of :func:`normal_round_float` but guaranteed to return an `int`.