code: def use_test_config_dir() -> Iterator[Path]:
      config_dir = Path(tempfile.mkdtemp(prefix="determined-config"))
      try:
          os.environ["DET_DEBUG_CONFIG_PATH"] = str(config_dir)
          yield config_dir
      finally:
          shutil.rmtree(config_dir)
  
imports: import contextlib
  import os
  import shutil
  import tempfile
  from pathlib import Path
  from typing import Iterator
label_desc: Use image node_id 1 for calling a global function with example usage: use_test_config_dir() without return types