code: def send_request(request, response_type, java_main, classpath=None):
      """
      Use subprocess to run a Java protobuf processor on the given request
  
      Returns the protobuf response
      """
      classpath = resolve_classpath(classpath)
      if classpath is None:
          raise ValueError(
              "Classpath is None,  Perhaps you need to set the $CLASSPATH or $CORENLP_HOME environment variable to point to a CoreNLP install."
          )
      pipe = subprocess.run(
          ["java", "-cp", classpath, java_main],
          input=request.SerializeToString(),
          stdout=subprocess.PIPE,
          check=True,
      )
      response = response_type()
      response.ParseFromString(pipe.stdout)
      return response
  
imports: from collections import deque
  import subprocess
  from stanza.models.common.utils import misc_to_space_after
  from stanza.models.constituency.parse_tree import Tree
  from stanza.protobuf import DependencyGraph, FlattenedParseTree
  from stanza.server.client import resolve_classpath
label_desc: Use image node_id 1 for calling a global function with example usage: send_request(request, response_type, java_main, classpath) and returns: response