def METHOD_NAME(self, command, code):
    data = self.send(code, {"Name": command, "SessionID": "0x%08X" % self.session})
    if data["Ret"] in self.OK_CODES and command in data:
        return data[command]
    else:
        return data