code: def _list_readline(x):
      """Given a list, returns a readline() function that returns the next element
      with each call.
      """
      x = iter(x)
  
      def readline():
          return next(x)
  
      return readline
  
file_path: catboost/contrib/python/ipython/py2/IPython/utils/openpy.py
imports: from __future__ import absolute_import
  import io
  from io import TextIOWrapper, BytesIO
  import os.path
  import re
  from .py3compat import unicode_type
label_desc: Use image node_id 5 for calling a global function with example usage: _list_readline(x) and returns: readline, next