class_docstr: Click command class customized for BentoML CLI, allow specifying a default
  command for each group defined.
  
  This command groups will also introduce support for aliases for commands and groups.
  
  Example:
  
  .. code-block:: python
  
      @click.group(cls=BentoMLCommandGroup)
      def cli(): ...
  
      @click.group(name="cloud", aliases=["cloud"], cls=BentoMLCommandGroup)
      def cli(): ...
  
      @cli.command(aliases=["serve-http"])
      def serve(): ...
code: def resolve_command(
      self, ctx: Context, args: list[str]
  ) -> tuple[str | None, Command | None, list[str]]:
      try:
          return super(BentoMLCommandGroup, self).resolve_command(
              ctx, args
          )
      except UsageError as e:
          error_msg = str(e)
          original_cmd_name = click.utils.make_str(args[0])
          matches = difflib.get_close_matches(
              original_cmd_name, self.list_commands(ctx), 3, 0.5
          )
          if matches:
              fmt_matches = "\n    ".join(matches)
              error_msg += "\n\n"
              error_msg += f"Did you mean?\n    {fmt_matches}"
          raise UsageError(error_msg, e.ctx)
  
imports: from __future__ import annotations
  import difflib
  import functools
  import logging
  import os
  import re
  import time
  import typing
  import attr
  import click
  import click_option_group
  from click import ClickException
  from click.exceptions import UsageError
label_desc: Use image node_id 10 for calling the BentoMLCommandGroup obj's underlying member method code with example usage: obj.resolve_command(ctx, args) and returns: super