input: Write a python function to check if a key exists in a dictionary.
  assert key_exists(dict, "car") == True
  assert key_exists(dict, "bike") == True
  assert key_exists(dict, "bus") == False
output: def key_exists(d, key):
      return key in d