def METHOD_NAME(monkeypatch, request):
    if "no_patch_add_layer" in request.keywords:
        return
    def _add_layer_util(self, index, layer, filters):
        if layer not in self.viewer.layers:
            self.viewer.add_layer(layer)
    monkeypatch.setattr(napari_image_view.ImageView, "_add_layer_util", _add_layer_util)