code: def testEMA(self):
      barDs = self.__loadBarDS()
      self.assertAmountsAreEqual(
          indicator.EMA(barDs.getCloseDataSeries(), 252, 2)[1], 93.16
      )  # Original value 93.15
      self.assertAmountsAreEqual(
          indicator.EMA(barDs.getCloseDataSeries(), 252, 2)[2], 93.97
      )  # Original value 93.96
      self.assertAmountsAreEqual(
          indicator.EMA(barDs.getCloseDataSeries(), 252, 2)[-1], 108.22
      )  # Original value 108.21
      self.assertAmountsAreEqual(
          indicator.EMA(barDs.getCloseDataSeries(), 252, 10)[9], 93.23
      )
  
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 21 for calling the TestCase obj's underlying member method code with example usage: obj.testEMA() without return types