code: def testLocalizeAndFilter(self):
      timezone = marketsession.USEquities.getTimezone()
      # The prices come from NinjaTrader interface when set to use 'US Equities RTH' session template.
      prices = {
          dt.localize(
              datetime.datetime(2011, 3, 9, 9, 31), timezone
          ): 132.35,
          dt.localize(
              datetime.datetime(2011, 3, 9, 16), timezone
          ): 132.39,
          dt.localize(
              datetime.datetime(2011, 3, 10, 9, 31), timezone
          ): 130.81,
          dt.localize(
              datetime.datetime(2011, 3, 10, 16), timezone
          ): 129.92,
          dt.localize(
              datetime.datetime(2011, 3, 11, 9, 31), timezone
          ): 129.72,
          dt.localize(
              datetime.datetime(2011, 3, 11, 16), timezone
          ): 130.84,
      }
      barFeed = ninjatraderfeed.Feed(
          ninjatraderfeed.Frequency.MINUTE, timezone
      )
      barFeed.addBarsFromCSV(
          "spy", common.get_data_file_path("nt-spy-minute-2011-03.csv")
      )
      for dateTime, bars in barFeed:
          price = prices.get(bars.getDateTime(), None)
          if price is not None:
              self.assertTrue(price == bars.getBar("spy").getClose())
  
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 6 for calling the NinjaTraderTestCase obj's underlying member method code with example usage: obj.testLocalizeAndFilter() without return types