code: def get_command(self, ctx, cmd_name):
          
          if cmd_name not in self._commands:
              logger.error("Command %s not available", cmd_name)
              return
  
          pkg_name = self._commands[cmd_name]
  
          try:
              mod = importlib.import_module(pkg_name)
          except ImportError:
              logger.exception("Command '%s' is not configured correctly. Unable to import '%s'", cmd_name, pkg_name)
              return
  
          if not hasattr(mod, "cli"):
              logger.error("Command %s is not configured correctly. It must expose an function called 'cli'", cmd_name)
              return
  
          return mod.cli
docs: Overrides method from ``click.MultiCommand`` that returns Click CLI object for given command name, if found.
  
          :param ctx: Click context
          :param cmd_name: Top-level command name
          :return: Click object representing the command