code: def build_ngrams(s, n=2):
      lst = s.split()
      ngrams = []
      for i in range(len(lst) - (n - 1)):
          ngram = []
          for j in range(n):
              ngram.append(lst[i + j])
          ngram = tuple(ngram)
          ngrams.append(ngram)
      return ngrams
  
file_path: ktrain/ktrain/text/shallownlp/searcher.py
imports: from .None import utils
  from .imports import *
label_desc: Use image node_id 8 for calling a global function with example usage: build_ngrams(s, n) and returns: ngrams