code: def test_read_sentences():
      with tempfile.TemporaryDirectory() as tempdir:
          raw_filename = os.path.join(tempdir, "raw.tsv")
          with open(raw_filename, "w") as fout:
              fout.write(FBK_SAMPLE)
  
          sentences = split_wikiner.read_sentences(
              raw_filename, "utf-8"
          )
          assert len(sentences) == 20
          text = [
              ["\t".join(word) for word in sent] for sent in sentences
          ]
          text = ["\n".join(sent) for sent in text]
          text = "\n\n".join(text)
          assert FBK_SAMPLE.strip() == text
  
file_path: stanza/stanza/tests/ner/test_split_wikiner.py
imports: import os
  import tempfile
  import pytest
  from stanza.utils.datasets.ner import split_wikiner
  from stanza.tests import *
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_sentences() without return types