code: def parse(self, element):
          r
          values = {}
          for child in element:
              node = self.get_node(child)
              subs = self.parse(child)
              value = subs or node['value']
              if node['tag'] not in values:
                  values[node['tag']] = value
              else:
                  if not isinstance(values[node['tag']], list):
                      values[node['tag']] = [values.pop(node['tag'])]
                  values[node['tag']].append(value)
          return values
docs: r"""Parse xml element.
  
          :param element: an :class:`~xml.etree.ElementTree.Element` instance
          :rtype: dict