code: def format_exception(e, tb):
      return {"exception": str(e), "traceback": format_traceback(tb)}
  
file_path: stable-diffusion-webui/modules/errors.py
imports: import sys
  import textwrap
  import traceback
label_desc: Use image node_id 2 for calling a global function with example usage: format_exception(e, tb) and returns: dict