code: def test_matcher_schema_token_attributes(en_vocab, pattern, text):
      matcher = Matcher(en_vocab)
      doc = Doc(en_vocab, words=text.split(" "))
      matcher.add("Rule", [pattern])
      assert len(matcher) == 1
      matches = matcher(doc)
      assert len(matches) == 1
  
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 41 for calling a global function with example usage: test_matcher_schema_token_attributes(en_vocab, pattern, text) without return types