parameters: (self)
docstring: Remove the temporary directory created and reset state
docstring_summary: Remove the temporary directory created and reset state
docstring_tokens: Remove the temporary directory created and reset state
function: def cleanup(self):
          """Remove the temporary directory created and reset state
          """
          if self.path is not None and os.path.exists(self.path):
              rmtree(self.path)
          self.path = None
function_tokens: def cleanup ( self ) : if self . path is not None and os . path . exists ( self . path ) : rmtree ( self . path ) self . path = None