code: def test_patdict(self, doc_en):
      matches = list(extract.token_matches(doc_en, [{"POS": "NOUN"}]))[
          :5
      ]
      assert matches
      assert all(len(span) == 1 for span in matches)
      assert all(span[0].pos_ == "NOUN" 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 6 for calling the TestTokenMatches obj's underlying member method code with example usage: obj.test_patdict(doc_en) without return types