code: def reverse_vocab(vocab: Vocab) -> InverseVocab:
      
      return {v: k for k, v in vocab.items()}
docs: Returns value-to-key mapping from key-to-value-mapping.
  
      :param vocab: Key to value mapping.
      :return: A mapping from values to keys.