code: def process_stanford(infile, java, corenlp, corenlp_models):
      stanford = Popen(
          [
              java,
              "-cp",
              corenlp + ":" + corenlp_models,
              "edu.stanford.nlp.pipeline.StanfordCoreNLP",
              "-annotators",
              "tokenize, ssplit, pos, depparse, lemma",
              "-ssplit.eolonly",
              "true",
              "-tokenize.whitespace",
              "true",
              "-numThreads",
              "8",
              "-textFile",
              "-",
              "outFile",
              "-",
          ],
          stdin=infile,
          stdout=PIPE,
          stderr=open("/dev/null", "w"),
      )
      return stanford.stdout
  
file_path: TextBox/asset/sacrebleu-romanian/preprocess/stanford-conll-wrapper.py
imports: from __future__ import print_function, unicode_literals
  import os
  import sys
  import codecs
  import io
  import argparse
  from collections import defaultdict
  from subprocess import Popen, PIPE
label_desc: Use image node_id 2 for calling a global function with example usage: process_stanford(infile, java, corenlp, corenlp_models) and returns: stanford