code: def BdbQuit_excepthook(et, ev, tb, excepthook=None):
      """Exception hook which handles `BdbQuit` exceptions.
  
      All other exceptions are processed using the `excepthook`
      parameter.
      """
      warnings.warn(
          "`BdbQuit_excepthook` is deprecated since version 5.1",
          DeprecationWarning,
          stacklevel=2,
      )
      if et == bdb.BdbQuit:
          print("Exiting Debugger.")
      elif excepthook is not None:
          excepthook(et, ev, tb)
      else:
          # Backwards compatibility. Raise deprecation warning?
          BdbQuit_excepthook.excepthook_ori(et, ev, tb)
  
imports: from __future__ import print_function
  import bdb
  import functools
  import inspect
  import sys
  import warnings
  from IPython import get_ipython
  from IPython.utils import PyColorize, ulinecache
  from IPython.utils import coloransi, py3compat
  from IPython.core.excolors import exception_colors
  from IPython.testing.skipdoctest import skip_doctest
  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