code: def matcher(en_vocab):
      rules = {
          "JS": [[{"ORTH": "JavaScript"}]],
          "GoogleNow": [[{"ORTH": "Google"}, {"ORTH": "Now"}]],
          "Java": [[{"LOWER": "java"}]],
      }
      matcher = Matcher(en_vocab)
      for key, patterns in rules.items():
          matcher.add(key, patterns)
      return matcher
  
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 1 for calling a global function with example usage: matcher(en_vocab) and returns: matcher