code: def test_simple_ner_conversion():
      """
      Test that tokens get properly created with NER tags
      """
      doc = CoNLL.conll2doc(input_str=SIMPLE_NER)
      assert len(doc.sentences) == 1
      sentence = doc.sentences[0]
      assert len(sentence.tokens) == 6
      EXPECTED_NER = ["S-PERSON", "O", "O", "O", "O", "S-PERSON"]
      for token, ner in zip(sentence.tokens, EXPECTED_NER):
          assert token.ner == ner
          # check that the ner, start_char, end_char fields were not put on the token's misc
          # those should all be set as specific fields on the token
          assert not token.misc
          assert len(token.words) == 1
          # they should also not reach the word's misc field
          assert not token.words[0].misc
  
      conll = "{:C}".format(doc)
      assert conll == SIMPLE_NER
  
imports: import io
  import pytest
  import tempfile
  from zipfile import ZipFile
  import stanza
  from stanza.utils.conll import CoNLL
  from stanza.models.common.doc import Document
  from stanza.tests import *
label_desc: Use image node_id 12 for calling a global function with example usage: test_simple_ner_conversion() without return types