def test_validate_gt_mask_invalid_dimensions(self) -> None:
        """Test validation of ground truth masks with invalid dimensions."""
        with pytest.raises(ValueError, match="Ground truth mask batch must have 1 channel, got 224"):
            self.validator.validate_gt_mask(np.zeros((4, 224, 224, 224)))
Test validation of ground truth masks with invalid dimensions.
tests/unit/data/validators/numpy/test_image.py