code: def test_replace_long_tokens():
      nlp = stanza.Pipeline(
          lang="en",
          download_method=None,
          model_dir=TEST_MODELS_DIR,
          processors="tokenize",
      )
  
      test_str = "foo " + "x" * 10000 + " bar"
  
      res = nlp(test_str)
  
      assert (
          res.sentences[0].words[1].text
          == tokenize_processor.TOKEN_TOO_LONG_REPLACEMENT
      )
  
imports: import pytest
  import stanza
  from stanza.pipeline import tokenize_processor
  from stanza.tests import TEST_MODELS_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: test_replace_long_tokens() without return types