code: def _mkdtemp_once(name):
      """Make or reuse a temporary directory.
  
      If this is called with the same name in the same process, it will return
      the same directory.
      """
      try:
          return _dtemps[name]
      except KeyError:
          d = _dtemps[name] = tempfile.mkdtemp(prefix=name + "-")
          return d
  
imports: import os
  import sys
  import stat
  import errno
  import tempfile
  import warnings
  from ipython_genutils import py3compat
  from contextlib import contextmanager
  from distutils.util import strtobool
  from ipython_genutils import py3compat
label_desc: Use image node_id 2 for calling a global function with example usage: _mkdtemp_once(name) and returns: _dtemps, d