code: def ngramsTokens(field: Sequence[Any], n: int) -> FrozenSet[str]:
      grams = set()
      n_tokens = len(field)
      for i in range(n_tokens):
          for j in range(i + n, min(n_tokens, i + n) + 1):
              grams.add(" ".join(str(tok) for tok in field[i:j]))
      return frozenset(grams)
  
imports: import re
  from itertools import chain
  from math import copysign, floor, log10
  from typing import Any, FrozenSet, Sequence, Tuple, Union
  from doublemetaphone import doublemetaphone
  from dedupe.cpredicates import initials, ngrams, unique_ngrams
label_desc: Use image node_id 11 for calling a global function with example usage: ngramsTokens(field, n) and returns: frozenset