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 must have 1 channel, got 2."):
            self.validator.validate_gt_mask(torch.zeros(4, 2, 224, 224))
Test validation of ground truth masks with invalid dimensions.
tests/unit/data/validators/torch/test_depth.py