code: def test_set_invalid_pos():
      doc = Doc(Vocab(), words=["hello", "world"])
      with pytest.raises(ValueError):
          doc[0].pos_ = "blah"
  
imports: import numpy
  import pytest
  from spacy.attrs import IS_ALPHA, IS_DIGIT, IS_LOWER, IS_PUNCT, IS_STOP, IS_TITLE
  from spacy.symbols import VERB
  from spacy.tokens import Doc
  from spacy.training import Example
  from spacy.vocab import Vocab
label_desc: Use image node_id 13 for calling a global function with example usage: test_set_invalid_pos() without return types