code: def run_test(tmp_path, raw_text, expected_sentences, expected_tokens):
      doc = write_and_convert(tmp_path, raw_text)
      check_json_file(
          doc, raw_text, expected_sentences, expected_tokens
      )
  
file_path: stanza/stanza/tests/datasets/ner/test_prepare_ner_file.py
imports: import pytest
  import json
  from stanza.models.common.doc import Document
  from stanza.utils.datasets.ner.prepare_ner_file import process_dataset
label_desc: Use image node_id 3 for calling a global function with example usage: run_test(tmp_path, raw_text, expected_sentences, expected_tokens) without return types