code: def test_remap_constituent_labels():
      text = "(ROOT (SBARQ (WHNP (WP Who)) (SQ (VP (VBZ sits) (PP (IN in)))) (. ?)))"
      expected = "(ROOT (FOO (WHNP (WP Who)) (SQ (VP (VBZ sits) (PP (IN in)))) (. ?)))"
  
      label_map = {"SBARQ": "FOO"}
      trees = tree_reader.read_trees(text)
      trees = [t.remap_constituent_labels(label_map) for t in trees]
      assert len(trees) == 1
      assert expected == str(trees[0])
  
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 12 for calling a global function with example usage: test_remap_constituent_labels() without return types