input: from typing import Dict, Any
  
  def delete_key(dic: Dict[Any, Any], k: Any) -> None:
      """ Deletes a given key from the dictionary if it exists. If the key does not exist, 
      the dictionary remains unchanged.
      >>> dictionary = {'foo': 1, 'bar': 2, 'baz': 3}
      >>> delete_key(dictionary, 'baz')
      >>> dictionary
      {'foo': 1, 'bar': 2}
      >>> delete_key(dictionary, 'nonexistent')
      >>> dictionary
      {'foo': 1, 'bar': 2}
      """
      if k in dic:
          del dic[k]
output:     else:
          pass