input: Write a function that creates a dictionary in Python using the provided key and value. The function should return the dictionary. If the provided key or value is invalid (e.g., None), the function should return an empty dictionary.
  def create_dict(key, value):
      if key is not None and value is not None:
          return {key: value}
      else:
          return {}
          
  assert create_dict("FirstName", "John")=={"FirstName": "John"}
  assert create_dict(None, "John")=={}
  assert create_dict("FirstName", None)=={}
  assert create_dict(None, None)=={}
output: def create_dict(key, value):
      if key is not None and value is not None:
          return {key: value}
      else:
          return {}