code: def test_pattern_types(self, doc_en, patterns):
      matches = list(extract.token_matches(doc_en, patterns))[:5]
      assert matches
      assert all(isinstance(span, Span) for span in matches)
  
imports: import re
  import pytest
  from spacy.tokens import Span
  from textacy import extract
  from textacy.extract.matches import _make_pattern_from_string
label_desc: Use image node_id 1 for calling the TestTokenMatches obj's underlying member method code with example usage: obj.test_pattern_types(doc_en, patterns) without return types