code: def test_match_consuming(doc, text, pattern, re_pattern):
      """Test that matcher.__call__ consumes tokens on a match similar to
      re.findall."""
      matcher = Matcher(doc.vocab)
      matcher.add(re_pattern, [pattern], greedy="FIRST")
      matches = matcher(doc)
      re_matches = [m.span() for m in re.finditer(re_pattern, text)]
      assert len(matches) == len(re_matches)
  
imports: import re
  import pytest
  from spacy.attrs import IS_PUNCT, LOWER, ORTH
  from spacy.errors import MatchPatternError
  from spacy.lang.en import English
  from spacy.lang.lex_attrs import LEX_ATTRS
  from spacy.matcher import Matcher
  from spacy.tokens import Doc, Span, Token
  from spacy.vocab import Vocab
label_desc: Use image node_id 34 for calling a global function with example usage: test_match_consuming(doc, text, pattern, re_pattern) without return types