code: def clean_up_mlruns_directory(request):
      """
      Clean up an `mlruns` directory on each test module teardown on CI to save the disk space.
      """
      yield
  
      # Only run this fixture on CI.
      if "GITHUB_ACTIONS" not in os.environ:
          return
  
      mlruns_dir = os.path.join(request.config.rootpath, "mlruns")
      if os.path.exists(mlruns_dir):
          try:
              shutil.rmtree(mlruns_dir)
          except OSError:
              if os.name == "nt":
                  raise
              # `shutil.rmtree` can't remove files owned by root in a docker container.
              subprocess.run(
                  ["sudo", "rm", "-rf", mlruns_dir], check=True
              )
  
imports: import inspect
  import os
  import shutil
  import subprocess
  from unittest import mock
  import pytest
  import mlflow
  from mlflow.tracking._tracking_service.utils import _use_tracking_uri
  from mlflow.utils.file_utils import path_to_local_sqlite_uri
  from mlflow.utils.os import is_windows
  from tests.autologging.fixtures import enable_test_mode
label_desc: Use image node_id 7 for calling a global function with example usage: clean_up_mlruns_directory(request) without return types