code: def testAssignOutOfScope(self, distribution):
      with distribution.scope():
          aggregating = variables_lib.Variable(1.0)
      self.assertIsInstance(aggregating, ps_values.AggregatingVariable)
      self.evaluate(aggregating.assign(3.0))
      self.assertEqual(self.evaluate(aggregating.read_value()), 3.0)
      self.assertEqual(self.evaluate(aggregating._v.read_value()), 3.0)
  
file_path: tensorflow-upstream/tensorflow/python/distribute/ps_values_test.py
imports: import os
  from absl.testing import parameterized
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.checkpoint import checkpoint_options
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import ps_values
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
label_desc: Use image node_id 1 for calling the AggregatingVariableTest obj's underlying member method code with example usage: obj.testAssignOutOfScope(distribution) without return types