code: def is_integer(value: Any) -> bool:
      
      return (isinstance(value, int) and not isinstance(value, bool)) or (
          isinstance(value, float) and isfinite(value) and int(value) == value
      )
docs: Return true if a value is an integer number.