code: def execute(self, command):
          
          try:
              if self.ssh.get_transport() is not None:
                  logger.debug('{0}: executing "{1}"'.format(self.target_address,
                                                             command))
                  stdin, stdout, stderr = self.ssh.exec_command(command)
                  return dict(zip(['stdin', 'stdout', 'stderr'],
                                  [stdin, stdout, stderr]))
              else:
                  raise SSHConnectionError(self.target_address,
                                           "ssh transport is closed")
          except (AuthenticationException, SSHException,
                  ChannelException, SocketError) as ex:
              logger.critical(("{0} execution failed on {1} with exception:"
                               "{2}".format(command, self.target_address,
                                                 ex)))
              raise SSHCommandError(self.target_address, command, ex)
docs: Executes command on remote hosts
  
          :type command: str
          :param command: command to be run on remote host