code: def testBounded(self):
      barFeed = ninjatraderfeed.Feed(
          ninjatraderfeed.Frequency.MINUTE, maxLen=2
      )
      barFeed.addBarsFromCSV(
          "spy", common.get_data_file_path("nt-spy-minute-2011-03.csv")
      )
      barFeed.loadAll()
  
      barDS = barFeed["spy"]
      self.assertEqual(len(barDS), 2)
      self.assertEqual(len(barDS.getDateTimes()), 2)
      self.assertEqual(len(barDS.getCloseDataSeries()), 2)
      self.assertEqual(
          len(barDS.getCloseDataSeries().getDateTimes()), 2
      )
      self.assertEqual(len(barDS.getOpenDataSeries()), 2)
      self.assertEqual(len(barDS.getHighDataSeries()), 2)
      self.assertEqual(len(barDS.getLowDataSeries()), 2)
      self.assertEqual(len(barDS.getAdjCloseDataSeries()), 2)
  
file_path: pyalgotrade/testcases/ninjatraderfeed_test.py
imports: import datetime
  from .None import common
  from .None import barfeed_test
  from .None import feed_test
  from pyalgotrade.barfeed import ninjatraderfeed
  from pyalgotrade import marketsession
  from pyalgotrade import bar
  from pyalgotrade.utils import dt
label_desc: Use image node_id 7 for calling the NinjaTraderTestCase obj's underlying member method code with example usage: obj.testBounded() without return types