def test_query_by_module_name(code_hierarchy_nodes: Sequence[BaseNode]) -> None:
    """Test querying the index by filename."""
    index = CodeHierarchyKeywordQueryEngine(nodes=code_hierarchy_nodes)
    query = "code_hierarchy"
    results = index.query(query)
    assert len(results.response) >= 1 and results.response != "None"
Test querying the index by filename.
llama-index-packs/llama-index-packs-code-hierarchy/tests/test_query_engine.py