code: def testFeedWithBars(self):
      feed = csvfeed.Feed("Date", "%Y-%m-%d")
      feed.addValuesFromCSV(
          common.get_data_file_path("orcl-2000-yahoofinance.csv")
      )
  
      self.assertEqual(len(feed.getKeys()), 6)
      for col in [
          "Open",
          "High",
          "Low",
          "Close",
          "Volume",
          "Adj Close",
      ]:
          self.assertEqual(len(feed[col]), 0)
  
      disp = dispatcher.Dispatcher()
      disp.addSubject(feed)
      disp.run()
  
      for col in [
          "Open",
          "High",
          "Low",
          "Close",
          "Volume",
          "Adj Close",
      ]:
          self.assertEqual(len(feed[col]), 252)
  
      self.assertEqual(feed["Open"][-1], 30.87)
      self.assertEqual(feed["High"][-1], 31.31)
      self.assertEqual(feed["Low"][-1], 28.69)
      self.assertEqual(feed["Close"][-1], 29.06)
      self.assertEqual(feed["Volume"][-1], 31655500)
      self.assertEqual(feed["Adj Close"][-1], 28.41)
  
file_path: pyalgotrade/testcases/csvfeed_test.py
imports: import datetime
  import os
  from .None import common
  from .None import feed_test
  from pyalgotrade.feed import csvfeed
  from pyalgotrade import dispatcher
  from pyalgotrade import marketsession
  from pyalgotrade.utils import dt
label_desc: Use image node_id 2 for calling the TestCase obj's underlying member method code with example usage: obj.testFeedWithBars() without return types