input: from typing import Dict
  
  def delete_key(dictionary: Dict, key):
      """ Deletes a given key from a dictionary.
      >>> delete_key({'foo': 1, 'bar': 2, 'baz': 3}, 'baz')
      {'foo': 1, 'bar': 2}
      >>> delete_key({'a': 1, 'b': 2, 'c': 3}, 'd')
      {'a': 1, 'b': 2, 'c': 3}
      """
output:     if key in dictionary:
          del dictionary[key]
      return dictionary