code: def get_doc(vocab, words, spaces, pos):
      doc = Doc(vocab, words=words, spaces=spaces)
      for i, pos_tag in enumerate(pos):
          doc[i].pos_ = pos_tag
      return doc
  
imports: import pytest
  from spacy.tokens import Doc, Span
  from spacy.vocab import Vocab
  from sense2vec.util import get_true_cased_text, make_key, split_key
label_desc: Use image node_id 1 for calling a global function with example usage: get_doc(vocab, words, spaces, pos) and returns: doc