def METHOD_NAME(env_yml: str, tarball_path: str) -> str:
    """
    To ensure the same environment.yml fixture we've got works across
    environments, we inject dynamically the current Python version.
    That way, we ensure tests using the tarball to load a dynamic custom
    environment are using the same Python version used to run the tests.
    """
    env = _read_env(env_yml)
    v = sys.version_info
    without_python = list(filterfalse(_is_python, env["dependencies"]))
    with_env_python = [f"python == {v.major}.{v.minor}", *without_python]
    env["dependencies"] = with_env_python
    dst_folder = os.path.dirname(tarball_path)
    new_env_yml = os.path.join(dst_folder, f"environment-py{v.major}{v.minor}.yml")
    _write_env(env, new_env_yml)
    return new_env_yml