code: def replace_mlflow_with_dev_version(yml_path: Path) -> None:
      old_src = yml_path.read_text()
      mlflow_dir = Path(mlflow.__path__[0]).parent
      new_src = re.sub(r"- mlflow.*\n", f"- {mlflow_dir}\n", old_src)
      yml_path.write_text(new_src)
  
file_path: mlflow/tests/examples/test_examples.py
imports: import os
  import re
  import shutil
  import sys
  from pathlib import Path
  import pytest
  import mlflow
  from mlflow import cli
  from mlflow.utils import process
  from mlflow.utils.virtualenv import _get_mlflow_virtualenv_root
  from tests.helper_functions import clear_hub_cache
  from tests.integration.utils import invoke_cli_runner
label_desc: Use image node_id 2 for calling a global function with example usage: replace_mlflow_with_dev_version(yml_path) without return types