@staticmethod
    def _get_unique_choices(choices):
        final_choices = collections.defaultdict(list)
        for k, val_list in choices.items():
            new_val_ids = []
            final_choices[k] = []
            for v in val_list:
                if new_val_ids not in v.id:
                    new_val_ids.append(v.id)
                    final_choices[k].append(v)
        return final_choices
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/app_manager/fields.py/ApplicationDataRMIHelper._get_unique_choices/swapped operands of `not in`