code: def test_Example_from_dict_with_morphology(annots):
      vocab = Vocab()
      predicted = Doc(vocab, words=annots["words"])
      example = Example.from_dict(predicted, annots)
      for i, token in enumerate(example.reference):
          assert str(token.morph) == annots["morphs"][i]
  
imports: import pytest
  from spacy.tokens import Doc
  from spacy.training.example import Example
  from spacy.util import to_ternary_int
  from spacy.vocab import Vocab
label_desc: Use image node_id 8 for calling a global function with example usage: test_Example_from_dict_with_morphology(annots) without return types