code: def test_min_freq(self, doc_en):
      n = 2
      counts = collections.Counter()
      counts.update(
          doc_en[i : i + n].text.lower()
          for i in range(len(doc_en) - n + 1)
      )
      result = list(extract.ngrams(doc_en, 2, min_freq=2))
      assert all(counts[span.text.lower()] >= 2 for span 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 5 for calling the TestNGrams obj's underlying member method code with example usage: obj.test_min_freq(doc_en) without return types