code: def reverse_dictionary(d):
      
      rev_d = {}
      [rev_d.update({v:k}) for k, v in d.items()]
      return rev_d
docs: Reverses the key value pairs for a given dictionary.
  
      Parameters
      ----------
      d : :obj:`dict`
          dictionary to reverse
  
      Returns
      -------
      :obj:`dict`
          dictionary with keys and values swapped