code: def testTRIMA(self):
      barDs = self.__loadBarDS()
      self.assertAmountsAreEqual(
          indicator.TRIMA(barDs.getCloseDataSeries(), 252, 10)[9],
          93.6043,
      )
      self.assertAmountsAreEqual(
          indicator.TRIMA(barDs.getCloseDataSeries(), 252, 10)[10],
          93.4252,
      )
      self.assertAmountsAreEqual(
          indicator.TRIMA(barDs.getCloseDataSeries(), 252, 10)[-2],
          109.1850,
          3,
      )
      self.assertAmountsAreEqual(
          indicator.TRIMA(barDs.getCloseDataSeries(), 252, 10)[-1],
          109.1407,
      )
  
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 52 for calling the TestCase obj's underlying member method code with example usage: obj.testTRIMA() without return types