code: def exception_to_dict(exc: Exception) -> Dict[str, Any]:
      return {
          "class": type(exc).__name__,
          "args": exc.args,
          "traceback": traceback.format_exception(
              type(exc), exc, exc.__traceback__
          ),
      }
  
label_desc: Use image node_id 1 for calling a global function with example usage: exception_to_dict(exc) and returns: dict