code: def test_depparse_with_pretagged_doc():
      nlp = stanza.Pipeline(
          **{
              "processors": "depparse",
              "dir": TEST_MODELS_DIR,
              "lang": "en",
              "depparse_pretagged": True,
          }
      )
  
      doc = CoNLL.conll2doc(input_str=EN_DOC_CONLLU_PRETAGGED)
      processed_doc = nlp(doc)
  
      assert EN_DOC_DEPENDENCY_PARSES_GOLD == "\n\n".join(
          [
              sent.dependencies_string()
              for sent in processed_doc.sentences
          ]
      )
  
file_path: stanza/stanza/tests/pipeline/test_depparse.py
imports: import pytest
  import stanza
  from stanza.pipeline.core import PipelineRequirementsException
  from stanza.utils.conll import CoNLL
  from stanza.tests import *
label_desc: Use image node_id 3 for calling a global function with example usage: test_depparse_with_pretagged_doc() without return types