def METHOD_NAME(node):
    """
    Converts an lxml.etree to dict for a quick test of conversion results
    """
    result = {}
    for element in node.iterchildren():
        key = element.tag.split('}')[1] if '}' in element.tag else element.tag
        if element.text and element.text.strip():
            value = element.text
        else:
            value = METHOD_NAME(element)
        result[key] = value
    return result