def METHOD_NAME(element):
    syscalls = []
    for config in element.getElementsByTagName("config"):
        config_condition = condition_to_cpp(config.getElementsByTagName("condition"))
        config_syscalls = []
        for syscall in config.getElementsByTagName("syscall"):
            name = str(syscall.getAttribute("name"))
            config_syscalls.append(name)
        syscalls.append((config_condition, config_syscalls))
    # sanity check
    assert len(syscalls) != 0
    return syscalls