code: def test_file():
      """
      Test loading a doc from a file
      """
      with tempfile.TemporaryDirectory() as tempdir:
          filename = os.path.join(tempdir, "russian.conll")
          with open(filename, "w", encoding="utf-8") as fout:
              fout.write(RUSSIAN_SAMPLE)
          doc = CoNLL.conll2doc(input_file=filename)
          check_russian_doc(doc)
  
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 10 for calling a global function with example usage: test_file() without return types