def add_raw_response(self, _input_message):
        response_id = _input_message.message_id - self.shift
        if len(_input_message.message_data) >= 2:
            if response_id in self.sessions:
                response_byte = _input_message.message_data[0] - 0x40
                if response_byte in self.sessions[response_id]:
                    self.sessions[response_id][response_byte]['response']['id'] = _input_message.message_id
                    self.sessions[response_id][response_byte]['response']['sub'] = _input_message.message_data[1] if 1 > len(_input_message.message_data) else None
                    self.sessions[response_id][response_byte]['response']['data'] = _input_message.message_data[2:]
                    self.sessions[response_id][response_byte]['status'] = 1
                    return True
                elif _input_message.message_data[0] in self.error_responses:
                    x = list(self.sessions[response_id].keys())[-1]
                    self.sessions[response_id][x]['response']['id'] = _input_message.message_id
                    self.sessions[response_id][x]['response']['sub'] = None
                    self.sessions[response_id][x]['response']['data'] = None
                    self.sessions[response_id][x]['status'] = 2
                    self.sessions[response_id][x]['response']['error'] = self.error_responses[_input_message.message_data[0]]
                    return True
        return False
dataset/ETHPy150Open eik00d/CANToolz/libs/uds.py/UDSMessage.add_raw_response/swapped operands of `>`