code: def test_mlflow_run_example(directory, params, tmp_path):
      mlflow.set_tracking_uri(tmp_path.joinpath("mlruns").as_uri())
      example_dir = Path(EXAMPLES_DIR, directory)
      tmp_example_dir = tmp_path.joinpath(example_dir)
      shutil.copytree(example_dir, tmp_example_dir)
      python_env_path = find_python_env_yaml(tmp_example_dir)
      replace_mlflow_with_dev_version(python_env_path)
      cli_run_list = [tmp_example_dir] + params
      invoke_cli_runner(cli.run, list(map(str, cli_run_list)))
  
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 4 for calling a global function with example usage: test_mlflow_run_example(directory, params, tmp_path) without return types