def test_model_transform_as_compose() -> None:
        """Test that the Resize transform is added to the augmentations if model_transform is a Compose object."""
        dataset = DummyDataset()
        model_transform = Compose([Resize(224, 224), Normalize(mean=[0.5, 0.5, 0.5], std=[1.0, 1.0, 1.0])])
        augmentations = Compose([RandomHorizontalFlip(), RandomVerticalFlip()])

        AnomalibDataModule._update_subset_augmentations(dataset, augmentations, model_transform=model_transform)  # noqa: SLF001
        assert dataset.augmentations.transforms[-1] == model_transform.transforms[0]
Test that the Resize transform is added to the augmentations if model_transform is a Compose object.
tests/unit/data/datamodule/test_update_augmentations.py