code: def test_root_labels():
      text = "( (SBARQ-FOO (WHNP-BAR (WP Who)) (SQ#ASDF (VP=1 (VBZ sits) (PP (IN in) (NP (DT this) (NN seat))))) (. ?)))"
      trees = tree_reader.read_trees(text)
      assert ["ROOT"] == Tree.get_root_labels(trees)
  
      text = (
          "( (SBARQ-FOO (WHNP-BAR (WP Who)) (SQ#ASDF (VP=1 (VBZ sits) (PP (IN in) (NP (DT this) (NN seat))))) (. ?)))"
          + "( (SBARQ-FOO (WHNP-BAR (WP Who)) (SQ#ASDF (VP=1 (VBZ sits) (PP (IN in) (NP (DT this) (NN seat))))) (. ?)))"
          + "( (SBARQ-FOO (WHNP-BAR (WP Who)) (SQ#ASDF (VP=1 (VBZ sits) (PP (IN in) (NP (DT this) (NN seat))))) (. ?)))"
      )
      trees = tree_reader.read_trees(text)
      assert ["ROOT"] == Tree.get_root_labels(trees)
  
      text = "(FOO) (BAR)"
      trees = tree_reader.read_trees(text)
      assert ["BAR", "FOO"] == Tree.get_root_labels(trees)
  
imports: import pytest
  from stanza.models.constituency.parse_tree import Tree
  from stanza.models.constituency import tree_reader
  from stanza.tests import *
label_desc: Use image node_id 9 for calling a global function with example usage: test_root_labels() without return types