def test_validate_gt_mask_invalid_type(self) -> None:
        """Test validation of ground truth masks with invalid type."""
        with pytest.raises(TypeError, match="Ground truth mask must be a torch.Tensor"):
            self.validator.validate_gt_mask([torch.zeros(10, 224, 224)])
Test validation of ground truth masks with invalid type.
tests/unit/data/validators/torch/test_video.py