code: def BdbQuit_excepthook(et, ev, tb, excepthook=None):
      """Exception hook which handles `BdbQuit` exceptions.
  
      All other exceptions are processed using the `excepthook`
      parameter.
      """
      raise ValueError(
          "`BdbQuit_excepthook` is deprecated since version 5.1",
      )
  
imports: import inspect
  import linecache
  import sys
  import re
  import os
  from IPython import get_ipython
  from contextlib import contextmanager
  from IPython.utils import PyColorize
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from pdb import Pdb
label_desc: Use image node_id 2 for calling a global function with example usage: BdbQuit_excepthook(et, ev, tb, excepthook) without return types