code: def collate(gold_treebank, predictions_treebank):
      """
      Turns a list of gold and prediction into a evaluation object
      """
      treebank = []
      for gold, prediction in zip(gold_treebank, predictions_treebank):
          result = ParseResult(gold, [prediction], None, None)
          treebank.append(result)
      return treebank
  
file_path: stanza/stanza/server/parser_eval.py
imports: from collections import namedtuple
  import sys
  import stanza
  from stanza.protobuf import EvaluateParserRequest, EvaluateParserResponse
  from stanza.server.java_protobuf_requests import send_request, build_tree, JavaProtobufContext
  from stanza.models.constituency.tree_reader import read_treebank
label_desc: Use image node_id 2 for calling a global function with example usage: collate(gold_treebank, predictions_treebank) and returns: treebank