code: def _result(self, command_response, log=None):
          
          if command_response["success"] == "yes":
              return CommandResult(True, None, log)
          else:
              return CommandResult(False, command_response["errmsg"], log)
docs: Create a CommandResult for a request response.
  
          :param command_response: command request response
          :type command_response: dict
          :param log: list of log messages (optional)
          :type log: list
          :return: a CommandResult containing any given log messages
          :rtype: :py:class:`vici.session.CommandResult`