code: def check_results(doc):
      assert len(doc.sentences) == len(TEST_TOKENS)
      for sentence, expected in zip(doc.sentences, TEST_TOKENS):
          assert sentence.constituency.leaf_labels() == expected
  
file_path: stanza/stanza/tests/pipeline/test_pipeline_constituency_processor.py
imports: import pytest
  import stanza
  from stanza.models.common.foundation_cache import FoundationCache
  from stanza.tests import *
label_desc: Use image node_id 2 for calling a global function with example usage: check_results(doc) without return types