class_docstr: Create and return a temporary directory.  This has the same
  behavior as mkdtemp but can be used as a context manager.  For
  example:
  
      with TemporaryDirectory() as tmpdir:
          ...
  
  Upon exiting the context, the directory and everything contained
  in it are removed.
code: def cleanup(self):
      if not self._closed:
          shutil.rmtree(self.name)
          self._closed = True
  
file_path: nipype/nipype/utils/tmpdirs.py
imports: import os
  import shutil
  from tempfile import template, mkdtemp
label_desc: Use image node_id 3 for calling the TemporaryDirectory obj's underlying member method code with example usage: obj.cleanup() without return types