code: def check_int(integer):
      
      if not isinstance(integer, str):
          return False
      if integer[0] in ('-', '+'):
          return integer[1:].isdigit()
      return integer.isdigit()
docs: Check if number is integer or not.
  
      :param integer: Number as str
      :return: Boolean