code: def compact_traceback():
      t, v, tb = sys.exc_info()
      tbinfo = []
      if not tb:  # Must have a traceback
          raise AssertionError("traceback does not exist")
      while tb:
          tbinfo.append(
              (
                  tb.tb_frame.f_code.co_filename,
                  tb.tb_frame.f_code.co_name,
                  str(tb.tb_lineno),
              )
          )
          tb = tb.tb_next
  
      # just to be safe
      del tb
  
      file, function, line = tbinfo[-1]
      info = " ".join(["[%s|%s|%s]" % x for x in tbinfo])
      return (file, function, line), t, v, info
  
imports: import select
  import socket
  import sys
  import time
  import warnings
  import os
  from errno import EALREADY, EINPROGRESS, EWOULDBLOCK, ECONNRESET, EINVAL, ENOTCONN, ESHUTDOWN, EISCONN, EBADF, ECONNABORTED, EPIPE, EAGAIN, errorcode
label_desc: Use image node_id 9 for calling a global function with example usage: compact_traceback() and returns: file,  function,  line,  t,  v,  info