input: Write a python function to check if a number is an integer.
  assert is_integer(10) == True
  assert is_integer(10.5) == False
  assert is_integer(-3) == True
  assert is_integer('5') == False
output: def is_integer(num):
      return isinstance(num, int)