code: def references_to_dict(elements):
      
      dictionary = {}
      for kvp in elements:
          dictionary[str(kvp['rel'])] = str(kvp['href'])
      return dictionary
docs: Convery a list of HATEOAS reference objects into a dictionary.
      Parameters
      ----------
      elements : List
          List of key value pairs, i.e., [{rel:..., href:...}].
      Returns
      -------
      Dictionary
          Dictionary of rel:href pairs.