code: def test_getter(nlp_pipeline):
      Word.add_property(
          "upos_xpos", getter=lambda self: f"{self.upos}_{self.xpos}"
      )
  
      doc = nlp_pipeline(EN_DOC)
  
      assert EN_DOC_UPOS_XPOS == tuple(
          tuple(word.upos_xpos for word in sentence.words)
          for sentence in doc.sentences
      )
  
file_path: stanza/stanza/tests/common/test_data_objects.py
imports: import pytest
  import stanza
  from stanza.models.common.doc import Document, Sentence, Word
  from stanza.tests import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_getter(nlp_pipeline) without return types