def get_command(self, ctx, cmd_name):
if cmd_name not in self._commands:<EOL><INDENT>logger.error("<STR_LIT>", cmd_name)<EOL>return<EOL><DEDENT>pkg_name = self._commands[cmd_name]<EOL>try:<EOL><INDENT>mod = importlib.import_module(pkg_name)<EOL><DEDENT>except ImportError:<EOL><INDENT>logger.exception("<STR_LIT>", cmd_name, pkg_name)<EOL>return<EOL><DEDENT>if not hasattr(mod, "<STR_LIT>"):<EOL><INDENT>logger.error("<STR_LIT>", cmd_name)<EOL>return<EOL><DEDENT>return mod.cli<EOL>
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