input: Write a function to create a dictionary in Python with given key-value pairs. If the input is empty, return an empty dictionary.
  
  def create_dict(key, value):
      if key is None or value is None:
          return {}
      return {key: value}
  
  assert create_dict("FirstName", "John")=={"FirstName": "John"}
  assert create_dict(None, "John")=={}
  assert create_dict("Age", 30)=={"Age": 30}
  assert create_dict(None, None)=={}
  assert create_dict("LastName", "Doe")=={"LastName": "Doe"}
output: def create_dict(key, value):
      if key is None or value is None:
          return {}
      return {key: value}