code: def __call_excepthooks(type, value, trace):
      """
      This function is meant to replace excepthook and do some
      special work if the exception value has a __thunk_trace__
      field.
      In that case, it retrieves the field, which should
      contain a trace as returned by L{traceback.extract_stack},
      and prints it out on L{stderr}.
  
      The normal excepthook is then called.
  
      Parameters:
      ----------
      type
          Exception class
      value
          Exception instance
      trace
          Traceback object
  
      Notes
      -----
      This hook replaced in testing, so it does not run.
  
      """
      for hook in __excepthooks:
          hook(type, value, trace)
      sys.__excepthook__(type, value, trace)
  
imports: import hashlib
  import logging
  import os
  import struct
  import subprocess
  import sys
  from collections import OrderedDict
  from collections.abc import Callable
  from functools import partial
label_desc: Use image node_id 1 for calling a global function with example usage: __call_excepthooks(type, value, trace) without return types