code: def test_zh_tokenizer_skip_newline_offsets():
      nlp = stanza.Pipeline(
          lang="zh", processors="tokenize", dir=TEST_MODELS_DIR
      )
      doc = nlp(ZH_DOC2)
  
      assert ZH_DOC1_GOLD_TOKENS == "\n\n".join(
          [sent.tokens_string() for sent in doc.sentences]
      )
      assert all(
          [
              doc.text[token._start_char : token._end_char].replace(
                  "\n", ""
              )
              == token.text
              for sent in doc.sentences
              for token in sent.tokens
          ]
      )
  
imports: import pytest
  import stanza
  from stanza.tests import *
label_desc: Use image node_id 10 for calling a global function with example usage: test_zh_tokenizer_skip_newline_offsets() without return types