code: def test_multiple_ns(self, ns, doc_en):
      result = list(extract.ngrams(doc_en, ns))
      assert all(isinstance(span, Span) for span in result)
      minn = min(ns)
      maxn = max(ns)
      assert all(minn <= len(span) <= maxn 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 2 for calling the TestNGrams obj's underlying member method code with example usage: obj.test_multiple_ns(ns, doc_en) without return types