code: def testADX(self):
      barDs = self.__loadBarDS()
      self.assertAmountsAreEqual(
          indicator.ADX(barDs, 252, 14)[27], 23.0000
      )
      self.assertAmountsAreEqual(
          indicator.ADX(barDs, 252, 14)[28], 22.0802
      )
      self.assertAmountsAreEqual(
          indicator.ADX(barDs, 252, 14)[-2], 16.6840
      )
      self.assertAmountsAreEqual(
          indicator.ADX(barDs, 252, 14)[-1], 15.5260
      )
  
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 7 for calling the TestCase obj's underlying member method code with example usage: obj.testADX() without return types