code: def testInitFromDifferentNameObject(
      self, distribution, in_replica_mode
  ):
      checkpoint_dir, v1_value, _ = self._get_test_object()
  
      def init_and_verify(g):
          v1 = variable_scope.get_variable("new_var1", [1, 10])
          # Use string add to create new object in each replica
          prefix = "new_"
          suffix = "var1"
          new_var1 = prefix + suffix
          checkpoint_utils.init_from_checkpoint(
              checkpoint_dir,
              {
                  "var1": new_var1,
              },
          )
          with self.test_session(graph=g) as session:
              session.run(variables.global_variables_initializer())
              self.assertAllEqual(v1_value, self.evaluate(v1))
  
      with ops.Graph().as_default() as g, distribution.scope():
          if in_replica_mode:
              distribution.extended.call_for_each_replica(
                  init_and_verify, [g]
              )
          else:
              init_and_verify(g)
  
file_path: tensorflow-upstream/tensorflow/python/distribute/checkpoint_utils_test.py
imports: import os
  from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.framework import 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 checkpoint_utils
  from tensorflow.python.training import saver
label_desc: Use image node_id 3 for calling the CheckpointUtilsWithDistributionStrategyTest obj's underlying member method code with example usage: obj.testInitFromDifferentNameObject(distribution, in_replica_mode) without return types