code: def test_cross_replica_context_raises_error(self):
      ema = exponential_moving_average.ExponentialMovingAverage(
          decay=0.0
      )
  
      with self.assertRaisesRegex(
          NotImplementedError,
          "Cross-replica context version not implemented.",
      ):
          with tf.distribute.MirroredStrategy().scope():
              variable = tf.Variable(2.0)
              ema.apply((variable,))
  
imports: import tensorflow
  from tensorflow_graphics.projects.gan import exponential_moving_average
label_desc: Use image node_id 3 for calling the ExponentialMovingAverageTest obj's underlying member method code with example usage: obj.test_cross_replica_context_raises_error() without return types