code: def zip_stanza_result(pred, tagset="universal"):
      """Takes the first sentence from a document from `stanza` and returns two
      lists, one of words and the other of their corresponding parts-of-
      speech."""
      if not isinstance(pred, stanza.models.common.doc.Document):
          raise TypeError(
              "Result from Stanza POS tagger must be a `Document` object."
          )
  
      word_list = []
      pos_list = []
  
      for sentence in pred.sentences:
          for word in sentence.words:
              word_list.append(word.text)
              if tagset == "universal":
                  pos_list.append(word.upos)
              else:
                  pos_list.append(word.xpos)
  
      return word_list, pos_list
  
imports: import re
  import string
  import flair
  import jieba
  from .importing import LazyLoader
label_desc: Use image node_id 12 for calling a global function with example usage: zip_stanza_result(pred, tagset) and returns: word_list,  pos_list