def METHOD_NAME(
    label_cfg: dict, validation_cfg: dict, validation_folder: Path
):
    for key, value in label_cfg.items():
        assert "type" in value
        # rationale: files are on their own and other types are in inputs.json
        if not "data:" in value["type"]:
            # check that keys are available
            assert key in validation_cfg, f"missing {key} in validation config file"
        else:
            # it's a file and it should be in the folder as well using key as the filename
            filename_to_look_for = key
            if "fileToKeyMap" in value:
                # ...or there is a mapping
                assert len(value["fileToKeyMap"]) > 0
                for filename, mapped_value in value["fileToKeyMap"].items():
                    assert (
                        mapped_value == key
                    ), f"file to key map for {key} has an incorrectly set {mapped_value}, it should be equal to {key}"
                    filename_to_look_for = filename
                    assert (
                        validation_folder / filename_to_look_for
                    ).exists(), (
                        f"{filename_to_look_for} is missing from {validation_folder}"
                    )
            else:
                assert (
                    validation_folder / filename_to_look_for
                ).exists(), (
                    f"{filename_to_look_for} is missing from {validation_folder}"
                )
    if validation_cfg:
        for key, value in validation_cfg.items():
            # check the key is defined in the labels
            assert key in label_cfg
            label2types: dict[str, type | tuple[type, ...]] = {
                "number": (float, int),
                "integer": int,
                "boolean": bool,
                "string": str,
            }
            if not "data:" in label_cfg[key]["type"]:
                # check the type is correct
                expected_type = label2types[label_cfg[key]["type"]]
                assert isinstance(
                    value, expected_type
                ), f"{value} has not the expected type {label2types[label_cfg[key]['type']]}"
    for path in validation_folder.glob("**/*"):
        # TODO: ANE this will not take into accounts subfolders. I had issues in the passed with such a bug. Make sure it is ok like this
        if path.name in ["inputs.json", "outputs.json", ".gitkeep"]:
            continue
        assert path.is_file(), f"{path} is not a file!"
        filename = path.name
        # this filename shall be available as a key in the labels somewhere
        key = next(_find_key_in_cfg(str(filename), label_cfg))
        assert key in label_cfg, f"{key} was not found in {label_cfg}"