def get_samples_dataframe(dataset_path: Path) -> pd.DataFrame:
        """Create samples DataFrame using the Folder datamodule."""
        _folder_datamodule = Folder(
            name="dummy",
            root=dataset_path / "mvtecad" / "dummy",
            normal_dir="train/good",
            abnormal_dir="test/bad",
            normal_test_dir="test/good",
            mask_dir="ground_truth/bad",
            train_batch_size=4,
            eval_batch_size=4,
            num_workers=0,
        )
        _folder_datamodule.setup()
        return pd.concat([
            _folder_datamodule.train_data.samples,
            _folder_datamodule.test_data.samples,
            _folder_datamodule.val_data.samples,
        ])
Create samples DataFrame using the Folder datamodule.
tests/unit/data/datamodule/image/test_tabular.py