def test_seg_model_cls_dataset(
        engine: Engine,
        classification_datamodule: AnomalibDataModule,
        image_and_pixel_evaluator: Evaluator,
    ) -> None:
        """Test segmentation model with classification dataset."""
        model = DummySegmentationModel(evaluator=image_and_pixel_evaluator)
        engine.train(model, datamodule=classification_datamodule)
Test segmentation model with classification dataset.
tests/integration/test_task_types.py