def save_m2m(self, obj, data, dry_run):
        if not dry_run:
            for field in self.get_fields():
                if not isinstance(field.widget, widgets.ManyToManyWidget):
                    continue
                self.import_field(field, obj, data)
Create a new SimpleCaseBuilder to chain multiple if-else
dataset/ETHPy150Open django-import-export/django-import-export/import_export/resources.py/Resource.save_m2m--crossover with--dataset/ETHPy150Open cloudera/ibis/ibis/expr/api.py/_case