code: def highwirepy2dict(highwire_elements):
      
      highwire_dict = {}
      # Make a list of content dictionaries for each element name.
      for element in highwire_elements:
          if element.name not in highwire_dict:
              highwire_dict[element.name] = []
          highwire_dict[element.name].append({'content': element.content})
      return highwire_dict
docs: Convert a list of highwire elements into a dictionary.
  
      The dictionary returned contains the elements in the
      UNTL dict format.