code: def clean_up_envs():
      yield
  
      if "GITHUB_ACTIONS" in os.environ:
          from mlflow.utils.virtualenv import (
              _get_mlflow_virtualenv_root,
          )
  
          shutil.rmtree(
              _get_mlflow_virtualenv_root(), ignore_errors=True
          )
          if os.name != "nt":
              conda_info = json.loads(
                  subprocess.check_output(
                      ["conda", "info", "--json"], text=True
                  )
              )
              root_prefix = conda_info["root_prefix"]
              for env in conda_info["envs"]:
                  if env != root_prefix:
                      shutil.rmtree(env, ignore_errors=True)
  
imports: import json
  import os
  import posixpath
  import shutil
  import subprocess
  import sys
  import click
  import pytest
  from mlflow.environment_variables import _MLFLOW_TESTING, MLFLOW_TRACKING_URI
  from mlflow.version import VERSION
  from tests.helper_functions import get_safe_port
label_desc: Use image node_id 12 for calling a global function with example usage: clean_up_envs() without return types