code: def test_dict_to_doc_and_doc_to_dict():
      """
      Test the conversion from raw dict to Document and back
  
      This code path will first turn start_char|end_char into start_char & end_char fields in the Document
      That version to a dict will have separate fields for each of those
      Finally, the conversion from that dict to a list of conll entries should convert that back to misc
      """
      document = Document(DICT)
      dicts = document.to_dict()
      document = Document(dicts)
      conll = [
          [sentence.split("\t") for sentence in doc.split("\n")]
          for doc in "{:c}".format(document).split("\n\n")
      ]
      assert conll == CONLL
  
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 3 for calling a global function with example usage: test_dict_to_doc_and_doc_to_dict() without return types