def test_validate_pred_label_invalid_type(self) -> None:
        """Test validation of prediction labels with invalid type."""
        with pytest.raises(TypeError, match="Predicted label must be a torch.Tensor"):
            self.validator.validate_pred_label([1, 0, 1, 1])
Test validation of prediction labels with invalid type.
tests/unit/data/validators/torch/test_image.py