code: def process_doc(doc, ssurgeon_edits):
      """
      Returns the result of processing the given semgrex expression and ssurgeon edits on the stanza doc.
  
      Currently the return is a SsurgeonResponse from CoreNLP.proto
      """
      request = build_request(doc, ssurgeon_edits)
  
      return send_ssurgeon_request(request)
  
imports: import argparse
  import copy
  import os
  import re
  import sys
  from stanza.models.common.utils import misc_to_space_after, space_after_to_misc
  from stanza.protobuf import SsurgeonRequest, SsurgeonResponse
  from stanza.server import java_protobuf_requests
  from stanza.utils.conll import CoNLL
  from stanza.models.common.doc import ID, TEXT, LEMMA, UPOS, XPOS, FEATS, HEAD, DEPREL, DEPS, MISC, START_CHAR, END_CHAR, NER, Word, Token, Sentence
label_desc: Use image node_id 6 for calling a global function with example usage: process_doc(doc, ssurgeon_edits) and returns: send_ssurgeon_request