input: Write a function to generate a list of suggestions based on a given prefix from a dictionary. The function should return a list of words from the dictionary that start with the given prefix. If the dictionary is empty, return an empty list.
  assert auto_complete(["dog", "deer", "deal", "dungeon", "dark", "dusk"], "d") == ['dog', 'deer', 'deal', 'dungeon', 'dark', 'dusk']
  assert auto_complete(["cat", "car", "cart", "cord", "coffee"], "ca") == ['cat', 'car', 'cart']
  assert auto_complete(["shop", "ship", "shoe", "sheet"], "sh") == ['shop', 'ship', 'shoe', 'sheet']
  assert auto_complete([], "a") == []
  assert auto_complete(["apple", "banana", "cherry"], "") == []
output: def auto_complete(dictionary, prefix):
      if not dictionary:
          return []
      return [word for word in dictionary if word.startswith(prefix)]