code: def check_results(
      documents, expected_conllu, expected_txt, expected_labels
  ):
      with tempfile.TemporaryDirectory() as output_dir:
          write_section(output_dir, "orchid", "train", documents)
          with open(
              os.path.join(output_dir, "th_orchid.train.gold.conllu")
          ) as fin:
              conllu = fin.read().strip()
          with open(
              os.path.join(output_dir, "th_orchid.train.txt")
          ) as fin:
              txt = fin.read()
          with open(
              os.path.join(output_dir, "th_orchid-ud-train.toklabels")
          ) as fin:
              labels = fin.read()
          assert conllu == expected_conllu
          assert txt == expected_txt
          assert labels == expected_labels
  
          assert len(txt) == len(labels)
  
file_path: stanza/stanza/tests/tokenization/test_tokenization_orchid.py
imports: import os
  import tempfile
  import pytest
  import xml.etree.ElementTree
  import stanza
  from stanza.tests import *
  from stanza.utils.datasets.common import convert_conllu_to_txt
  from stanza.utils.datasets.tokenization.convert_th_orchid import parse_xml
  from stanza.utils.datasets.tokenization.process_thai_tokenization import write_section
label_desc: Use image node_id 1 for calling a global function with example usage: check_results(documents, expected_conllu, expected_txt, expected_labels) without return types