code: def load_command(module: str, attribute: str) -> click.BaseCommand:
      """
      Load and return the Click command object located at '<module>:<attribute>'.
      """
      command = _load_obj(module, attribute)
  
      if not isinstance(command, click.BaseCommand):
          raise MkDocsClickException(
              f"{attribute!r} must be a 'click.BaseCommand' object, got {type(command)}"
          )
  
      return command
  
imports: from __future__ import annotations
  import importlib
  from typing import Any
  import click
  from ._exceptions import MkDocsClickException
label_desc: Use image node_id 1 for calling a global function with example usage: load_command(module, attribute) and returns: command