def test_equal_splits(datamodule: AnomalibDataModule) -> None:
        """This test ensures that val and test split are equal when split mode == same_as_test."""
        if datamodule.val_split_mode == "same_as_test":
            assert np.array_equal(
                datamodule.val_data.samples["image_path"].to_numpy(),
                datamodule.test_data.samples["image_path"].to_numpy(),
            ), "Validation and test splits are not equal"
This test ensures that val and test split are equal when split mode == same_as_test.
tests/unit/data/datamodule/base/image.py