code: def check_build(fake_scores=True):
      treebank = build_one_tree_treebank(fake_scores)
      request = build_request(treebank)
  
      assert len(request.treebank) == 1
      check_tree(request.treebank[0].gold, treebank[0][0], None)
      assert len(request.treebank[0].predicted) == 1
      if fake_scores:
          check_tree(
              request.treebank[0].predicted[0],
              treebank[0][1][0][0],
              treebank[0][1][0][1],
          )
      else:
          check_tree(
              request.treebank[0].predicted[0], treebank[0][1][0], None
          )
  
file_path: stanza/stanza/tests/server/test_parser_eval.py
imports: import pytest
  import stanza
  from stanza.models.constituency import tree_reader
  from stanza.protobuf import EvaluateParserRequest, EvaluateParserResponse
  from stanza.server.parser_eval import build_request, collate, EvaluateParser, ParseResult
  from stanza.tests.server.test_java_protobuf_requests import check_tree
  from stanza.tests import *
label_desc: Use image node_id 2 for calling a global function with example usage: check_build(fake_scores) without return types