code: def run_eval(gold, test):
      """Evaluates a set of predictions using the appropriate script."""
      if is_conllu(gold):
          run_conllu_eval(gold_file=gold, test_file=test)
      else:
          eval_script = os.path.join(
              os.path.dirname(os.path.realpath(__file__)),
              "eval",
              "eval.pl",
          )
          with open(
              test[: test.rindex(".")] + "_eval.txt", "w"
          ) as out_file:
              subprocess.run(
                  ["perl", eval_script, "-g", gold, "-s", test],
                  stdout=out_file,
              )
  
file_path: nlp-architect/nlp_architect/models/bist/utils.py
imports: import os
  import subprocess
  from collections import Counter
  from nlp_architect.data.conll import ConllEntry
  from nlp_architect.models.bist.eval.conllu.conll17_ud_eval import run_conllu_eval
label_desc: Use image node_id 4 for calling a global function with example usage: run_eval(gold, test) without return types