def METHOD_NAME(
    osparc_simcore_root_dir: Path, expected_python_version
):
    pre_commit_config = yaml.safe_load(
        (osparc_simcore_root_dir / ".pre-commit-config.yaml").read_text()
    )
    py_version = tuple(
        map(
            int,
            pre_commit_config["default_language_version"]["python"]
            .replace("python", "")
            .split("."),
        )
    )
    assert py_version == expected_python_version