class_docstr: Creates a temporary directory and sets the cwd to that directory.
  Automatically reverts to previous cwd upon cleanup.
  Usage example:
  
      with TemporaryWorkingDirectory() as tmpdir:
          ...
class_docstr_tok: ["Creates","a","temporary","directory","and","sets","the","cwd","to","that","directory",".","Automatically","reverts","to","previous","cwd","upon","cleanup",".","Usage","example",":","with","TemporaryWorkingDirectory","(",")","as","tmpdir",":","..."]
code: def __exit__(self, exc, value, tb):
      _os.chdir(self.old_wd)
      return super(TemporaryWorkingDirectory, self).__exit__(
          exc, value, tb
      )
  
file_path: catboost/contrib/python/ipython-genutils/py3/ipython_genutils/tempdir.py
imports: from __future__ import print_function
  import os
  import warnings
  import sys
label_desc: Use image node_id 2 for calling the TemporaryWorkingDirectory obj's underlying member method code with example usage: obj.__exit__(exc, value, tb) and returns: super