code: def test_matcher_set_value(en_vocab):
      matcher = Matcher(en_vocab)
      pattern = [{"ORTH": {"IN": ["an", "a"]}}]
      matcher.add("A_OR_AN", [pattern])
      doc = Doc(en_vocab, words=["an", "a", "apple"])
      matches = matcher(doc)
      assert len(matches) == 2
      doc = Doc(en_vocab, words=["aardvark"])
      matches = matcher(doc)
      assert len(matches) == 0
  
imports: import pytest
  from mock import Mock
  from spacy.matcher import Matcher
  from spacy.tokens import Doc, Span, Token
  from ..doc.test_underscore import clean_underscore
label_desc: Use image node_id 26 for calling a global function with example usage: test_matcher_set_value(en_vocab) without return types