code: def test_ngrams():
      from speechbrain.lm.counting import ngrams
  
      assert next(ngrams(["a", "b", "c"], n=3)) == ("a", "b", "c")
      assert next(ngrams(["a", "b", "c"], n=1)) == ("a",)
      assert not list(ngrams(["a", "b", "c"], n=4))
      assert list(ngrams(["a", "b", "c"], n=2)) == [
          ("a", "b"),
          ("b", "c"),
      ]
  
label_desc: Use image node_id 2 for calling a global function with example usage: test_ngrams() without return types