code: def testROC(self):
      barDs = self.__loadBarDS()
      self.assertAmountsAreEqual(
          indicator.ROC(barDs.getCloseDataSeries(), 252, 14)[14], -0.546
      )
      self.assertAmountsAreEqual(
          indicator.ROC(barDs.getCloseDataSeries(), 252, 14)[15], -2.109
      )
      self.assertAmountsAreEqual(
          indicator.ROC(barDs.getCloseDataSeries(), 252, 14)[16], -5.53
      )
      self.assertAmountsAreEqual(
          indicator.ROC(barDs.getCloseDataSeries(), 252, 14)[-1],
          -1.0367,
      )
  
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 41 for calling the TestCase obj's underlying member method code with example usage: obj.testROC() without return types