code: def build_doc(iterations, suffix):
      """
      build N copies of the english text above, with a lambda function applied for the tag suffices
  
      for example:
        lambda x: "" means the suffices are all blank (NNP, POS, NNS, etc) for each iteration
        lambda x: "-%d" % x means they go (NNP-0, NNP-1, NNP-2, etc) for the first word's tag
      """
      texts = [
          EN_EXAMPLE % {"tag": suffix(i)} for i in range(iterations)
      ]
      text = "\n\n".join(texts)
      doc = CoNLL.conll2doc(input_str=text)
      return doc
  
imports: import pytest
  import logging
  import os
  import tempfile
  from stanza.models import tagger
  from stanza.models.common import pretrain
  from stanza.models.pos.data import Dataset
  from stanza.models.pos.trainer import Trainer
  from stanza.models.pos.vocab import WordVocab, XPOSVocab
  from stanza.models.pos.xpos_vocab_factory import xpos_vocab_factory
  from stanza.models.pos.xpos_vocab_utils import XPOSDescription, XPOSType, build_xpos_vocab, choose_simplest_factory
  from stanza.utils.conll import CoNLL
  from stanza.tests import TEST_WORKING_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: build_doc(iterations, suffix) and returns: doc