code: def test_build_tree():
      text = "((S (VP (VB Unban)) (NP (NNP Mox) (NNP Opal))))\n( (SBARQ (WHNP (WP Who)) (SQ (VP (VBZ sits) (PP (IN in) (NP (DT this) (NN seat))))) (. ?)))"
      trees = tree_reader.read_trees(text)
      assert len(trees) == 2
  
      for tree in trees:
          proto_tree = java_protobuf_requests.build_tree(trees[0], 1.0)
          check_tree(proto_tree, trees[0], 1.0)
  
file_path: stanza/stanza/tests/server/test_java_protobuf_requests.py
imports: import tempfile
  import pytest
  from stanza.models.common.utils import misc_to_space_after, space_after_to_misc
  from stanza.models.constituency import tree_reader
  from stanza.server import java_protobuf_requests
  from stanza.tests import *
  from stanza.utils.conll import CoNLL
  from stanza.protobuf import DependencyGraph
label_desc: Use image node_id 2 for calling a global function with example usage: test_build_tree() without return types