def checkpoint(model_name: str) -> Path:
        """Return the path to the trained model.

        Since integration tests train all the models, model training occurs when running unit tests invididually.
        """
        model = get_model(model_name)
        _ckpt_path = project_path / model.name / "MVTecAD" / "dummy" / "latest" / "weights" / "lightning" / "model.ckpt"
        if not _ckpt_path.exists():
            engine = Engine(
                logger=False,
                default_root_dir=project_path,
                max_epochs=1,
                devices=1,
            )
            dataset = MVTecAD(root=dataset_path / "mvtecad", category="dummy")
            engine.fit(model=model, datamodule=dataset)

        return _ckpt_path
Return the path to the trained model.

        Since integration tests train all the models, model training occurs when running unit tests invididually.
        
tests/conftest.py