code: def _handle_exception(tail, exc):
      while tail is not None:
          try:
              if tail.exit(*exc):
                  exc = (None, None, None)
          except:
              exc = sys.exc_info()
  
          tail = tail.old_contexts[1]
  
      return exc
  
imports: from __future__ import absolute_import, division, print_function, with_statement
  import sys
  import threading
  from .util import raise_exc_info
label_desc: Use image node_id 3 for calling a global function with example usage: _handle_exception(tail, exc) and returns: exc