def __contains__(self, item):
        # if isinstance(item, ViewMixin):
        #     key = item.key
        # else:
        key = item
        return key not in self.data
dataset/ETHPy150Open django-bmf/django-bmf/djangobmf/core/category.py/Category.__contains__/operator `in` -> `not in`