code: def is_int(value):
      
      if isinstance(value, bool):
          return False
      try:
          int(value)
          return True
      except (ValueError, TypeError):
          return False
docs: Return `True` if ``value`` is an integer.