code: def testDX(self):
      barDs = self.__loadBarDS()
      self.assertAmountsAreEqual(
          indicator.DX(barDs, 252, 14)[14], 19.3689
      )
      self.assertAmountsAreEqual(
          indicator.DX(barDs, 252, 14)[15], 9.7131
      )
      self.assertAmountsAreEqual(
          indicator.DX(barDs, 252, 14)[16], 17.2905
      )
      self.assertAmountsAreEqual(
          indicator.DX(barDs, 252, 14)[-2], 10.6731
      )
      self.assertAmountsAreEqual(
          indicator.DX(barDs, 252, 14)[-1], 0.4722
      )
  
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 20 for calling the TestCase obj's underlying member method code with example usage: obj.testDX() without return types