def METHOD_NAME(local_types: record_type, node: ElementTree.Element, folder: str) -> None:
    """Collect xml attribute usage at the current level
    Args:
        local_types (dict): dictionary containing attribute usage
        node (lxml.etree.Element): current xml node
        folder (str): the source folder for the current file
    """
    for ka in node.attrib.keys():
        local_types['attributes'][ka][folder].append(node.get(ka))
    for child in node:
        if child.tag in local_types['children']:
            METHOD_NAME(local_types['children'][child.tag], child, folder)