input: Write a function to compare two objects for equality including types.
  assert compare_objects(5, 5) == True
  assert compare_objects(5, "5") == False
  assert compare_objects([1, 2, 3], [1, 2, 3]) == True
  assert compare_objects([1, 2, 3], [1, 2, 4]) == False
  assert compare_objects({"a": 1, "b": 2}, {"a": 1, "b": 2}) == True
  assert compare_objects({"a": 1, "b": 2}, {"a": 2, "b": 2}) == False
output: def compare_objects(obj1, obj2):
      return obj1 == obj2 and type(obj1) == type(obj2)