def cli(self, commands):
cli_output = dict()<EOL>if type(commands) is not list:<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>for command in commands:<EOL><INDENT>output = self._send_command(command)<EOL>cli_output.setdefault(command, {})<EOL>cli_output[command] = output<EOL><DEDENT>return cli_output<EOL>
Execute a list of commands and return the output in a dictionary format using the command
as the key.

Example input:
['show clock', 'show calendar']

Output example:
{   'show calendar': u'22:02:01 UTC Thu Feb 18 2016',
    'show clock': u'*22:01:51.165 UTC Thu Feb 18 2016'}