def test_query_by_all_uuids(code_hierarchy_nodes: Sequence[BaseNode]) -> None:
    """Test querying the index by signature."""
    index = CodeHierarchyKeywordQueryEngine(nodes=code_hierarchy_nodes)
    for node in code_hierarchy_nodes:
        # Find all uuids in the node
        uuids = re.findall(r"[\w-]{36}", node.text)
        for uuid in uuids:
            results = index.query(uuid)
            assert len(results.response) >= 1 and results.response != "None"
Test querying the index by signature.
llama-index-packs/llama-index-packs-code-hierarchy/tests/test_query_engine.py