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.
      Example:
      >>> dic = {'foo': 1, 'bar': 2, 'baz': 3}
      >>> key = 'baz'
      >>> delete_key(dic, key)
      >>> dic
      {'foo': 1, 'bar': 2}
      """
output:     if k in dic:
          del dic[k]