code: def iter_token_lines(tokenlist):
      """
      Iterator that yields tokenlists for each line.
      """
      line = []
      for token, c in explode_tokens(tokenlist):
          line.append((token, c))
  
          if c == "\n":
              yield line
              line = []
  
      yield line
  
file_path: catboost/contrib/python/prompt-toolkit/py2/prompt_toolkit/layout/utils.py
imports: from __future__ import unicode_literals
  from prompt_toolkit.utils import get_cwidth
  from prompt_toolkit.token import Token
label_desc: Use image node_id 4 for calling a global function with example usage: iter_token_lines(tokenlist) without return types