def METHOD_NAME(conandata: dict[str, Any]) -> dict[str, list[str]]:
    result = defaultdict(list)
    if 'patches' in conandata:
        for version, data in conandata['patches'].items():
            def handler(tags: list[str], data: str) -> None:
                if not tags or tags[-1] == 'patch_file':
                    result[version].append(data)
            _traverse_arbitrary_structure(data, handler)
    return result