code: def testUpdateAndValue(self):
      ema = moving_averages.ExponentialMovingAverage(0.50)
      ema.update(3.0)
      self.assertAllClose(ema.value.numpy(), 3.0, atol=1e-3, rtol=1e-5)
  
      ema.update(6.0)
      self.assertAllClose(ema.value.numpy(), 5.0, atol=1e-3, rtol=1e-5)
  
file_path: sonnet/sonnet/src/moving_averages_test.py
imports: from absl.testing import parameterized
  from sonnet.src import moving_averages
  from sonnet.src import test_utils
  import tensorflow
label_desc: Use image node_id 2 for calling the ExponentialMovingAverageTest obj's underlying member method code with example usage: obj.testUpdateAndValue() without return types