def get_car_type(self, source_id, car_dic):
        car_id_list = list()
        brand_id = self.get_car_id(source_id, 1, 0, car_dic['brand'])
        car_id_list.append(brand_id)
        series_id = self.get_car_id(source_id, 2, brand_id, car_dic['series'])
        car_id_list.append(series_id)
        level = 3
        parent_id = series_id
        key_list = ['power', 'year', 'style']
        for key in key_list:
            if not car_dic.keys() in key:
                break
            car_id = self.get_car_id(source_id, level, parent_id, car_dic[key])
            car_id_list.append(car_id)
            parent_id = car_id
            level += 1
        return car_id_list
dataset/ETHPy150Open wcong/ants/antsext/CrawlDao.py/CrawlDao.get_car_type/swapped operands of `in`