code: def get_qualifier_dict(vocabularies, qualifier_vocab):
      
      # Raise exception if the vocabulary can't be found.
      if vocabularies.get(qualifier_vocab, None) is None:
          raise UNTLFormException(
              'Could not retrieve qualifier vocabulary "%s" for the form.'
              % (qualifier_vocab)
          )
      else:
          # Return the sorted vocabulary.
          return vocabularies.get(qualifier_vocab)
docs: Get the qualifier dictionary based on the element's qualifier
      vocabulary.