code: def test_postprocessor():
      def dummy_postprocessor(in_doc):
          # Importantly, EN_DOC_POSTPROCESSOR_COMBINED_LIST returns a few tokens joinde
          # with space. As some languages (such as VN) contains tokens with space in between
          # its important to have joined space tested as one of the tokens
          assert in_doc == EN_DOC_POSTPROCESSOR_TOKENS_LIST
          return EN_DOC_POSTPROCESSOR_COMBINED_LIST
  
      nlp = stanza.Pipeline(
          **{
              "processors": "tokenize",
              "dir": TEST_MODELS_DIR,
              "lang": "en",
              "tokenize_postprocessor": dummy_postprocessor,
          }
      )
      doc = nlp(EN_DOC)
      assert (
          EN_DOC_POSTPROCESSOR_COMBINED_TOKENS.strip()
          == "\n\n".join(
              [sent.tokens_string() for sent in doc.sentences]
          ).strip()
      )
  
imports: import pytest
  import stanza
  from stanza.tests import *
label_desc: Use image node_id 5 for calling a global function with example usage: test_postprocessor() and returns: EN_DOC_POSTPROCESSOR_COMBINED_LIST