code: def _format_usage_error(e):
      msg = e.format_message()
      replacements = [
          ('No such command "(.+)"', "unrecognized command '%s'"),
          (
              "Got unexpected extra argument \\((.+?)\\)",
              "unexpected extra argument '%s'",
          ),
          (
              "Got unexpected extra arguments \\((.+?)\\)",
              "unexpected extra arguments '%s'",
          ),
      ]
      for msg_pattern, new_msg_pattern in replacements:
          m = re.match(msg_pattern, msg)
          if m:
              return new_msg_pattern % m.groups()
      return msg
  
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 10 for calling a global function with example usage: _format_usage_error(e) and returns: msg, unknown