code: def test_mirrored_strategy_replica_context_runs(self):
      ema = exponential_moving_average.ExponentialMovingAverage(
          decay=0.5
      )
      strategy = tf.distribute.MirroredStrategy()
  
      def apply_to_ema(variable):
          ema.apply((variable,))
  
      with strategy.scope():
          variable = tf.Variable(2.0)
          strategy.run(apply_to_ema, (variable,))
  
      self.assertAllClose(
          ema.averaged_variables[0], variable.read_value()
      )
  
imports: import tensorflow
  from tensorflow_graphics.projects.gan import exponential_moving_average
label_desc: Use image node_id 4 for calling the ExponentialMovingAverageTest obj's underlying member method code with example usage: obj.test_mirrored_strategy_replica_context_runs() without return types