def _remove_item(self, item):
        if item in self.items:
            self.items.remove(item)
        else:
            raise KeyError("Item %r not found" % item)
dataset/ETHPy150Open divio/django-cms/cms/toolbar/items.py/ToolbarAPIMixin._remove_item/original