code: def clean_up_mlflow_virtual_environments():
      yield
  
      for path in Path(_get_mlflow_virtualenv_root()).iterdir():
          if path.is_dir():
              shutil.rmtree(path)
  
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 3 for calling a global function with example usage: clean_up_mlflow_virtual_environments() without return types