def test_model_visualizer_mode(
        ckpt_path: Callable[[str], Path],
        project_path: Path,
        dataset_path: Path,
    ) -> None:
        """Test combination of model/visualizer/mode on only 1 epoch as a sanity check before merge."""
        _ckpt_path: Path = ckpt_path("Padim")
        model = Padim(evaluator=False)
        engine = Engine(
            default_root_dir=project_path,
            fast_dev_run=True,
            devices=1,
        )
        datamodule = MVTecAD(root=dataset_path / "mvtecad", category="dummy")
        engine.test(model=model, datamodule=datamodule, ckpt_path=str(_ckpt_path))

        dataset = PredictDataset(path=dataset_path / "mvtecad" / "dummy" / "test")
        datamodule = DataLoader(dataset, collate_fn=ImageBatch.collate)
        engine.predict(model=model, dataloaders=datamodule, ckpt_path=str(_ckpt_path))
Test combination of model/visualizer/mode on only 1 epoch as a sanity check before merge.
tests/unit/utils/test_visualizer.py