code: def wrap_exception(engine_info={}):
      etype, evalue, tb = sys.exc_info()
      stb = traceback.format_exception(etype, evalue, tb)
      exc_content = {
          "status": "error",
          "traceback": stb,
          "ename": etype.__name__,
          "evalue": str(evalue),
          "engine_info": engine_info,
      }
      return exc_content
  
imports: import builtins
  import sys
  import traceback
label_desc: Use image node_id 2 for calling a global function with example usage: wrap_exception(engine_info) and returns: exc_content