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

        Args:
            dataset_path (Path): Root of the synthetic/original dataset.
            project_path (Path): Path to temporary project folder.
        """
        AnomalibCLI(
            args=[
                "train",
                *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 train method of the CLI.

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