class_docstr: Stateful object able to manage temporary folder and pickles
  
  It exposes:
  - a per-context folder name resolving API that memmap-based reducers will
    rely on to know where to pickle the temporary memmaps
  - a temporary file/folder management API that internally uses the
    resource_tracker.
class_docstr_tok: ["Stateful","object","able","to","manage","temporary","folder","and","pickles","It","exposes",":","-","a","per-context","folder","name","resolving","API","that","memmap-based","reducers","will","rely","on","to","know","where","to","pickle","the","temporary","memmaps","-","a","temporary","file\/folder","management","API","that","internally","uses","the","resource_tracker","."]
code: def __init__(self, temp_folder_root=None, context_id=None):
      self._current_temp_folder = None
      self._temp_folder_root = temp_folder_root
      self._use_shared_mem = None
      self._cached_temp_folders = dict()
      self._id = uuid4().hex
      self._finalizers = {}
      if context_id is None:
          # It would be safer to not assign a default context id (less silent
          # bugs), but doing this while maintaining backward compatibility
          # with the previous, context-unaware version get_memmaping_executor
          # exposes too many low-level details.
          context_id = uuid4().hex
      self.set_current_context(context_id)
  
imports: from mmap import mmap
  import errno
  import os
  import stat
  import threading
  import atexit
  import tempfile
  import time
  import warnings
  import weakref
  from uuid import uuid4
  from multiprocessing import util
  from pickle import whichmodule, loads, dumps, HIGHEST_PROTOCOL, PicklingError
  from .numpy_pickle import dump, load, load_temporary_memmap
  from .backports import make_memmap
  from .disk import delete_folder
  from .externals.loky.backend import resource_tracker
label_desc: Use image node_id 1 to create a new TemporaryResourcesManager object from inherited base classes: object with example: obj = TemporaryResourcesManager(temp_folder_root, context_id)