def test_predict_with_dataloader(self, dataset_path: Path, project_path: Path) -> None:
        """Test the predict method of the CLI.

        This test uses the MVTec AD dataloader for predict test.

        Args:
            dataset_path (Path): Root of the synthetic/original dataset.
            project_path (Path): Path to temporary project folder.
        """
        # Test with MVTec AD Dataset
        AnomalibCLI(
            args=[
                "predict",
                *self._get_common_cli_args(
                    dataset_path,
                    project_path,
                ),
                "--ckpt_path",
                f"{project_path}/Padim/MVTecAD/dummy/v0/weights/lightning/model.ckpt",
            ],
        )
        torch.cuda.empty_cache()
Test the predict method of the CLI.

        This test uses the MVTec AD dataloader for predict test.

        Args:
            dataset_path (Path): Root of the synthetic/original dataset.
            project_path (Path): Path to temporary project folder.
        
tests/integration/cli/test_cli.py