input: Write a function to create a dictionary in Python with given key-value pairs. The function should take two parameters: the first parameter is the key and the second parameter is the value. The function should return the dictionary. If either the key or the value is empty or not provided, the function should return an empty dictionary.
  
  assert create_dictionary("FirstName", "John") == {"FirstName": "John"}
  assert create_dictionary("", "John") == {}
  assert create_dictionary("FirstName", "") == {}
  assert create_dictionary("", "") == {}
output: def create_dictionary(key, value):
      if key and value:
          return {key: value}
      else:
          return {}