code: def check_tree(proto_tree, py_tree, py_score):
      tree, tree_score = java_protobuf_requests.from_tree(proto_tree)
      assert tree_score == py_score
      assert tree == py_tree
  
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 1 for calling a global function with example usage: check_tree(proto_tree, py_tree, py_score) without return types