code: def test_write_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"
          )
          copy_filename = os.path.join(tempdir, "copy.tsv")
          split_wikiner.write_sentences_to_file(
              sentences, copy_filename
          )
  
          sent2 = split_wikiner.read_sentences(raw_filename, "utf-8")
          assert sent2 == sentences
  
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 2 for calling a global function with example usage: test_write_sentences() without return types