code: def format_error_message(e):
      msg_parts = [_format_click_error_message(e)]
      ctx = getattr(e, "ctx", None)
      if ctx:
          msg_parts.append(
              f"\nTry '{cmd_help(e.ctx)}' for more information."
          )
      return "".join(msg_parts)
  
imports: import contextlib
  import functools
  import json
  import os
  import re
  import click
  from click import shell_completion
  import guild
  from guild import python_util
label_desc: Use image node_id 6 for calling a global function with example usage: format_error_message(e) and returns: str