def test_validate_gt_mask_valid(self) -> None:
        """Test validation of valid ground truth masks."""
        masks = torch.randint(0, 2, (10, 1, 224, 224))
        validated_masks = self.validator.validate_gt_mask(masks)
        assert isinstance(validated_masks, Mask)
        assert validated_masks.shape == (10, 224, 224)
        assert validated_masks.dtype == torch.bool
Test validation of valid ground truth masks.
tests/unit/data/validators/torch/test_video.py