code: def test_command_example(directory, command):
      cwd_dir = Path(EXAMPLES_DIR, directory)
      assert os.environ.get("MLFLOW_HOME") is not None
      if directory == "transformers":
          # NB: Clearing the huggingface_hub cache is to lower the disk storage pressure for CI
          clear_hub_cache()
      process._exec_cmd(command, cwd=cwd_dir, env=os.environ)
  
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 5 for calling a global function with example usage: test_command_example(directory, command) without return types