code: def testSharedVariable(self):
      shared_variable_store = {}
      num_devices = 3
      creator_fns = []
      for i in range(num_devices):
          creator_fn = shared_variable_creator.make_fn(
              shared_variable_store, i
          )
          creator_fns.append(creator_fn)
  
      with variable_scope.variable_creator_scope(creator_fns[0]):
          v0 = variable_v1.VariableV1(1.0, name="foo")
  
      with variable_scope.variable_creator_scope(creator_fns[1]):
          v1 = variable_v1.VariableV1(1.0, name="foo")
  
      with variable_scope.variable_creator_scope(creator_fns[2]):
          v2 = variable_v1.VariableV1(1.0, name="foo")
  
      # v1 and v2 should be same as v0
      self.assertIs(v1, v0)
      self.assertIs(v2, v0)
  
file_path: tensorflow/tensorflow/python/distribute/shared_variable_creator_test.py
imports: from tensorflow.python.distribute import shared_variable_creator
  from tensorflow.python.eager import test
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variable_v1
label_desc: Use image node_id 1 for calling the SharedVariableCreatorTest obj's underlying member method code with example usage: obj.testSharedVariable() without return types