code: def test_mwt_ner_conversion():
      """
      Test that tokens including MWT get properly created with NER tags
  
      Note that this kind of thing happens with the EWT tokenizer for English, for example
      """
      doc = CoNLL.conll2doc(input_str=MWT_NER)
      assert len(doc.sentences) == 1
      sentence = doc.sentences[0]
      assert len(sentence.tokens) == 5
      assert not sentence.has_enhanced_dependencies()
      EXPECTED_NER = ["O", "O", "S-PERSON", "O", "O"]
      EXPECTED_WORDS = [1, 1, 2, 1, 1]
      for token, ner, expected_words in zip(
          sentence.tokens, EXPECTED_NER, EXPECTED_WORDS
      ):
          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) == expected_words
          # they should also not reach the word's misc field
          assert not token.words[0].misc
  
      conll = "{:C}".format(doc)
      assert conll == MWT_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 13 for calling a global function with example usage: test_mwt_ner_conversion() without return types