code: def test_min_freq(self, doc_en):
      counts = collections.Counter()
      counts.update(tok.lower_ for tok in doc_en)
      result = list(extract.words(doc_en, min_freq=2))
      assert all(counts[tok.lower_] >= 2 for tok in result)
  
imports: import collections
  import pytest
  from spacy.tokens import Span, Token
  from textacy import extract
  from textacy.extract import basics
label_desc: Use image node_id 4 for calling the TestWords obj's underlying member method code with example usage: obj.test_min_freq(doc_en) without return types