code: def build_request(words, xpos_tags):
      """
      Turn a list of words and a list of tags into a request
  
      tags must be xpos, not upos
      """
      request = MorphologyRequest()
      for word, tag in zip(words, xpos_tags):
          tagged_word = request.words.add()
          tagged_word.word = word
          tagged_word.xpos = tag
      return request
  
file_path: stanza/stanza/server/morphology.py
imports: from stanza.protobuf import MorphologyRequest, MorphologyResponse
  from stanza.server.java_protobuf_requests import send_request, JavaProtobufContext
label_desc: Use image node_id 2 for calling a global function with example usage: build_request(words, xpos_tags) and returns: request