code: def test_extract_token_matches(doc):
      patterns = [
          {"POS": {"IN": ["ADJ", "DET"]}, "OP": "+"},
          {"ORTH": {"REGEX": "workers?"}},
      ]
      results = list(textacy.extract.token_matches(doc, patterns))
      assert results and len(results) == 2
      assert all(isinstance(result, Span) for result in results)
  
imports: import collections
  import itertools
  import re
  import pytest
  from spacy.tokens import Span
  import textacy
  import textacy.datasets
  import textacy.extract
  import textacy.preprocessing
label_desc: Use image node_id 11 for calling a global function with example usage: test_extract_token_matches(doc) without return types