def remove(self, chb):
        """ Removes a checkbox from this collection """
        if chb.collection == self:
            self.error(
                "Can't remove the checkbox from this collection as it is not "
                "attached to this collection!")
            return
        chb.collection = None
        self._items.remove(chb)
dataset/ETHPy150Open tobspr/RenderPipeline/rpcore/gui/checkbox_collection.py/CheckboxCollection.remove/operator `is not` -> `==`