def test_validate_gt_mask_invalid_type(self) -> None:
        """Test validation of a ground truth mask with invalid type."""
        with pytest.raises(TypeError, match="Mask must be a numpy.ndarray"):
            self.validator.validate_gt_mask([1, 2, 3])
Test validation of a ground truth mask with invalid type.
tests/unit/data/validators/numpy/test_image.py