code: def _concat_extract_ngrams(
      doclike: types.DocLike, ns: Collection[int]
  ) -> Iterable[Span]:
      for n in ns:
          ngrams = extract.ngrams(doclike, n=n)
          for ngram in ngrams:
              yield ngram
  
file_path: textacy/src/textacy/tokenizers/terms.py
imports: from __future__ import annotations
  import operator
  from functools import partial
  from typing import Callable, Collection, Iterable, Optional
  from cytoolz import itertoolz
  from spacy.tokens import Span
  from ..None import extract, types
label_desc: Use image node_id 1 for calling a global function with example usage: _concat_extract_ngrams(doclike, ns) without return types