def test_03_upsert_multiple_and_get(neo4j_graph_store: Neo4jGraphStore):
    """
    Insert multiple triplets for a single subject.
    """
    # Add two different relationships from 'Alice'
    neo4j_graph_store.upsert_triplet("Alice", "LIKES", "IceCream")
    neo4j_graph_store.upsert_triplet("Alice", "DISLIKES", "Spinach")

    results = neo4j_graph_store.get("Alice")
    # Expect two relationships
    assert len(results) == 2
    rels = {rel[0] for rel in results}
    objs = {rel[1] for rel in results}
    assert rels == {"LIKES", "DISLIKES"}
    assert objs == {"IceCream", "Spinach"}

    Insert multiple triplets for a single subject.
    
llama-index-integrations/graph_stores/llama-index-graph-stores-neo4j/tests/test_graph_stores_neo4j.py