code: def testGoogle2011(self):
      initialValue = 1000000
      barFeed = yahoofeed.Feed()
      barFeed.addBarsFromCSV(
          AnalyzerTestCase.TestInstrument,
          common.get_data_file_path("goog-2011-yahoofinance.csv"),
      )
  
      strat = strategy_test.TestStrategy(barFeed, initialValue)
      order = strat.getBroker().createMarketOrder(
          broker.Order.Action.BUY,
          AnalyzerTestCase.TestInstrument,
          1654,
          True,
      )  # 2011-01-03 close: 604.35
      strat.getBroker().submitOrder(order)
  
      stratAnalyzer = returns.Returns()
      strat.attachAnalyzer(stratAnalyzer)
      strat.run()
      finalValue = strat.getBroker().getEquity()
  
      self.assertEqual(
          round(stratAnalyzer.getCumulativeReturns()[-1], 4),
          round((finalValue - initialValue) / float(initialValue), 4),
      )
  
imports: import datetime
  from .None import common
  from .None import strategy_test
  from .None import position_test
  from testcases import test_strategy
  from pyalgotrade.barfeed import yahoofeed
  from pyalgotrade.barfeed import csvfeed
  from pyalgotrade.stratanalyzer import returns
  from pyalgotrade import broker
  from pyalgotrade import marketsession
label_desc: Use image node_id 7 for calling the AnalyzerTestCase obj's underlying member method code with example usage: obj.testGoogle2011() without return types