def should_suppress_on_change(self, event):
        if isinstance(event, ModelChangedEvent):
            for event_json in self.content['events']:
                if event_json['kind'] == 'ModelChanged' and \
                   event_json['model']['id'] == event.model._id and \
                   event_json['attr'] == event.attr:
                    patch_new = event_json['new']
                    if isinstance(event.new, Model):
                        if patch_new is not None and 'id' in patch_new and patch_new['id'] == event.new._id:
                            return True
                    else:
                        if patch_new == event.serializable_new:
                            return True
                elif event_json['kind'] == 'ColumnsStreamed' and \
                   event_json['column_source']['id'] == event.hint.column_source._id and \
                   event_json['data'] == event.hint.data and \
                   event_json['rollover'] == event.hint.rollover:
                    return True
        elif isinstance(event, RootAddedEvent):
            for event_json in self.content['events']:
                if event_json['kind'] == 'RootAdded' and \
                   event_json['model']['id'] == event.model._id:
                    return True
        elif isinstance(event, RootRemovedEvent):
            for event_json in self.content['events']:
                if event_json['kind'] == 'RootRemoved' and \
                   event_json['model']['id'] == event.model._id:
                    return True
        elif isinstance(event, TitleChangedEvent):
            for event_json in self.content['events']:
                if event_json['kind'] == 'TitleChanged' and \
                   event_json['title'] == event.title:
                    return True
        else:
            raise RuntimeError("should_suppress_on_change needs to handle " + repr(event))

        return False
Tear down a previous deployment on the task's node.
dataset/ETHPy150Open bokeh/bokeh/bokeh/server/protocol/messages/patch_doc.py/patch_doc_1.should_suppress_on_change--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/iscsi_deploy.py/ISCSIDeploy.tear_down