code: def slaunch_ipdb_on_exception():
      try:
          yield
      except Exception:
          e, m, tb = sys.exc_info()
          print(m.__repr__(), file=sys.stderr)
          spost_mortem(tb)
      finally:
          pass
  
file_path: catboost/contrib/python/ipdb/py2/ipdb/stdout.py
imports: from __future__ import print_function
  import sys
  from contextlib import contextmanager
  from IPython.utils import io
  from .__main__ import set_trace
  from .__main__ import post_mortem
label_desc: Use image node_id 5 for calling a global function with example usage: slaunch_ipdb_on_exception() without return types