code: def display(e: Exception, task, *, full_traceback=False):
      record_exception()
  
      print(f"{task or 'error'}: {type(e).__name__}", file=sys.stderr)
      te = traceback.TracebackException.from_exception(e)
      if full_traceback:
          # include frames leading up to the try-catch block
          te.stack = traceback.StackSummary(
              traceback.extract_stack()[:-2] + te.stack
          )
      print(*te.format(), sep="", file=sys.stderr)
  
      message = str(e)
      if (
          "copying a param with shape torch.Size([640, 1024]) from checkpoint, the shape in current model is torch.Size([640, 768])"
          in message
      ):
          print_error_explanation(
              """
  The most likely cause of this is you are trying to load Stable Diffusion 2.0 model without specifying its config file.
  See https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Features#stable-diffusion-20 for how to solve this.
          """
          )
  
file_path: stable-diffusion-webui/modules/errors.py
imports: import sys
  import textwrap
  import traceback
label_desc: Use image node_id 7 for calling a global function with example usage: display(e, task) without return types