def serialize_order_params(self):
        res = {}
        if self.order:
            res['order'] = self.order
        if self.mode:
            res['mode'] = self.mode
        if self.nested_path:
            res['nested_path'] = self.nested_path
        if self.nested_filter:
            res['nested_filter'] = self.nested_filter.serialize()
        if self.missing:
            res['missing'] = self.missing
        if self.ignore_unmapped not in None:
            res['ignore_unmapped'] = self.ignore_unmapped

        return res
dataset/ETHPy150Open aparo/pyes/pyes/sort.py/SortOrder.serialize_order_params/operator `is not` -> `not in`