code: def get_temp_dir() -> str:
      global _TEMPDIR
      if _TEMPDIR is None:
          _TEMPDIR = _make_temp_dir(
              prefix="instruction_count_microbenchmarks",
              gc_dev_shm=True,
          )
          atexit.register(shutil.rmtree, path=_TEMPDIR)
      return _TEMPDIR
  
file_path: pytorch/benchmarks/instruction_counts/core/utils.py
imports: import atexit
  import re
  import shutil
  import textwrap
  from typing import List, Optional, Tuple
  from torch.utils.benchmark.utils.common import _make_temp_dir
  from core.api import GroupedBenchmark, TimerArgs
  from core.types import Definition, FlatIntermediateDefinition, Label
label_desc: Use image node_id 1 for calling a global function with example usage: get_temp_dir() and returns: _TEMPDIR