def METHOD_NAME():
    mlflow_root = os.path.dirname(os.path.dirname(mlflow.__file__))
    conda_env = read_yaml(TEST_VIRTUALENV_CONDA_PROJECT_DIR, "conda.yaml")
    conda_pip_dependencies = [
        item for item in conda_env["dependencies"] if isinstance(item, dict) and "pip" in item
    ][0]["pip"]
    if "mlflow" in conda_pip_dependencies:
        conda_pip_dependencies.remove("mlflow")
        conda_pip_dependencies.append(mlflow_root)
    write_yaml(TEST_VIRTUALENV_CONDA_PROJECT_DIR, "conda.yaml", conda_env, overwrite=True)
    for proj_dir in (TEST_VIRTUALENV_PROJECT_DIR, TEST_VIRTUALENV_NO_PYTHON_ENV):
        virtualenv_requirements_path = os.path.join(proj_dir, "requirements.txt")
        with open(virtualenv_requirements_path) as f:
            virtualenv_requirements = f.readlines()
        with open(virtualenv_requirements_path, "w") as f:
            for line in virtualenv_requirements:
                if line.rstrip("\n") != "mlflow":
                    f.write(line)
                else:
                    f.write(mlflow_root)
                    f.write("\n")