def METHOD_NAME(self):
    ngrams = text_utils.generate_ngrams(self.TOKENS, 2)
    self.assertEqual(
        list(ngrams),
        ["this will", "will be", "be a", "a test", "test of", "of tokens"],
    )
    ngrams = text_utils.generate_ngrams(self.TOKENS, 3)
    self.assertEqual(
        list(ngrams),
        ["this will be", "will be a", "be a test", "a test of", "test of tokens"],
    )