code: def doc(en_vocab):
      words = [
          "Peter",
          "has",
          "chronic",
          "command",
          "and",
          "control",
          "issues",
      ]
      heads = [1, 1, 6, 6, 3, 3, 1]
      deps = ["nsubj", "ROOT", "amod", "nmod", "cc", "conj", "dobj"]
      pos = ["PROPN", "VERB", "ADJ", "NOUN", "CCONJ", "NOUN", "NOUN"]
      return Doc(en_vocab, words=words, heads=heads, deps=deps, pos=pos)
  
imports: import pytest
  from spacy.tokens import Doc
label_desc: Use image node_id 1 for calling a global function with example usage: doc(en_vocab) and returns: Doc