code: def testCopyXlaSharding(self):
      ema = moving_averages.ExponentialMovingAverage(
          0.25, name="foo_avg"
      )
      v = variables.Variable(_Repeat(10.0, 2), name="v")
      self.assertIsNone(xla_sharding.get_tensor_sharding(v))
      v = xla_sharding.mesh_split(
          v, np.array([0, 1]), [0], use_sharding_op=False
      )
      self.assertIsNotNone(xla_sharding.get_tensor_sharding(v))
      self.evaluate(variables.global_variables_initializer())
      ema.apply([v])
      avg = ema.average(v)
      self.assertEqual(
          xla_sharding.get_tensor_sharding(v),
          xla_sharding.get_tensor_sharding(avg),
      )
  
imports: import numpy
  from tensorflow.python.compiler.xla.experimental import xla_sharding
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_state_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import moving_averages
  from tensorflow.python.training import saver
label_desc: Use image node_id 31 for calling the ExponentialMovingAverageTest obj's underlying member method code with example usage: obj.testCopyXlaSharding() without return types