def test_extract_partial_list_progress_invalid_content():
    """Test extracting partial list progress with invalid content."""
    content = "invalid json content"
    current_show = Show(title="Comedy Show")

    from llama_index.core.program.utils import create_flexible_model

    partial_cls = create_flexible_model(Show)

    result = _extract_partial_list_progress(content, Show, current_show, partial_cls)
    assert result is None
Test extracting partial list progress with invalid content.
llama-index-core/tests/program/test_streaming_utils.py