code: def testAD(self):
      barDs = self.__loadBarDS()
      self.assertAmountsAreEqual(
          indicator.AD(barDs, 252)[0], -1631000.00
      )
      self.assertAmountsAreEqual(
          indicator.AD(barDs, 252)[1], 2974412.02
      )
      self.assertAmountsAreEqual(
          indicator.AD(barDs, 252)[-2], 8707691.07
      )
      self.assertAmountsAreEqual(
          indicator.AD(barDs, 252)[-1], 8328944.54
      )
  
imports: import datetime
  import talib
  from six.moves import xrange
  from .None import common
  from pyalgotrade.talibext import indicator
  from pyalgotrade import bar
  from pyalgotrade import dataseries
  from pyalgotrade.dataseries import bards
label_desc: Use image node_id 5 for calling the TestCase obj's underlying member method code with example usage: obj.testAD() without return types