code: def __exit__(self, exc_type, exc_val, exc_tb):
      self.cleanup()
      if not self.keepdir:
          try:
              shutil.rmtree(self.dir)
          except OSError:
              e = sys.exc_info()[1]
              # sys.stderr.write("Can't remove temp dir: " + str(e) + "\n")
              # if exc_type is None:
              #    raise
  
      if exc_type is not None:
          if self.keepdir:
              sys.stderr.write("Temp dir=" + self.dir + "\n")
          if exc_type not in self.suppress:
              return False
  
imports: import os.path
  import shutil
  import sys
  import tempfile
  from contextlib import contextmanager
  from whoosh.filedb.filestore import FileStorage
  from whoosh.util import now, random_name
label_desc: Use image node_id 4 for calling the TempDir obj's underlying member method code with example usage: obj.__exit__(exc_type, exc_val, exc_tb) and returns: False