def test_datamodule_has_dataloader_attributes(datamodule: AnomalibDataModule, subset: str) -> None:
        """Test that the datamodule has the correct dataloader attributes."""
        dataloader = f"{subset}_dataloader"
        assert hasattr(datamodule, dataloader)
        assert isinstance(getattr(datamodule, dataloader)(), DataLoader)
Test that the datamodule has the correct dataloader attributes.
tests/unit/data/datamodule/base/base.py