class_docstr: A context for appending a directory to sys.path for a second.
class_docstr_tok: ["A","context","for","appending","a","directory","to","sys.path","for","a","second","."]
code: def __exit__(self, type, value, traceback):
      if self.added:
          try:
              sys.path.remove(self.dir)
          except ValueError:
              pass
      # Returning False causes any exceptions to be re-raised.
      return False
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/syspathcontext.py
imports: import sys
  from IPython.utils.py3compat import cast_bytes_py2
label_desc: Use image node_id 3 for calling the appended_to_syspath obj's underlying member method code with example usage: obj.__exit__(type, value, traceback) and returns: False