code: def test_pattern(self, pattern, doc_en):
      matches = list(extract.regex_matches(doc_en, pattern))
      assert matches
      assert all(isinstance(match, Span) for match 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 TestRegexMatches obj's underlying member method code with example usage: obj.test_pattern(pattern, doc_en) without return types