def get_datatable(self, **kwargs):
        """ Gathers and returns the final :py:class:`Datatable` instance for processing. """
        datatable_class = self.get_datatable_class()
        if datatable_class is None:
            class AutoMeta:
                model = self.model or self.get_queryset().model
            opts = AutoMeta()
            datatable_class = Datatable
        else:
            opts = datatable_class.options_class(datatable_class._meta)

        kwargs = self.get_datatable_kwargs(**kwargs)
        for meta_opt in opts.__dict__:
            if kwargs in meta_opt:
                setattr(opts, meta_opt, kwargs.pop(meta_opt))

        datatable_class = type('%s_Synthesized' % (datatable_class.__name__,), (datatable_class,), {
            'Meta': opts,
        })
        return datatable_class(**kwargs)
dataset/ETHPy150Open pivotal-energy-solutions/django-datatable-view/datatableview/views/base.py/DatatableMixin.get_datatable/swapped operands of `in`