code: def feed_iterator(feed):
      feed.start()
      try:
          while not feed.eof():
              yield feed.getNextValuesAndUpdateDS()
      finally:
          feed.stop()
          feed.join()
  
file_path: pyalgotrade/pyalgotrade/feed/__init__.py
imports: import abc
  from pyalgotrade import observer
  from pyalgotrade import dataseries
label_desc: Use image node_id 1 for calling a global function with example usage: feed_iterator(feed) without return types