code: def test_greedy_matching_longest(doc, text, pattern, longest):
      """Test the "LONGEST" greedy matching behavior"""
      matcher = Matcher(doc.vocab)
      matcher.add("RULE", [pattern], greedy="LONGEST")
      matches = matcher(doc)
      for key, s, e in matches:
          assert doc[s:e].text == longest
  
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 31 for calling a global function with example usage: test_greedy_matching_longest(doc, text, pattern, longest) without return types