code: def create_group(value):
      
      node = etree.Element('div', attrib={'class': 'group-by'})
      span = etree.Element('span', attrib={'class': 'group-label'})
      span.text = value
      node.append(span)
      return node
docs: Create the group wrapper node.