def test_empty_doc():
    """Ensure passing empty docs returns an empty List[TextNode]."""
    warnings.warn(
        "WARNING: This test may fail if the context length of MockLLM is changed.\n"
        "Make sure chunk_size * window_size fits within MockLLM.context_window.",
        UserWarning,
    )

    llm = MockLLM()
    node_parser = SlideNodeParser.from_defaults(
        chunk_size=1300,  # setting non default values to match context length of mock LLM
        window_size=3,
        llm=llm,
    )
    nodes = node_parser.get_nodes_from_documents(documents=[Document(text="")])
    print(nodes)

    assert isinstance(nodes, list)
    assert nodes == []
Ensure passing empty docs returns an empty List[TextNode].
llama-index-integrations/node_parser/llama-index-node-parser-slide/tests/test_node_parser_slide.py