code: def testInitialValueComesFromCheckpoint(self):
      checkpoint_dir = self.get_temp_dir()
      with self.cached_session() as session:
          v1, _, _, _ = _create_checkpoints(session, checkpoint_dir)
  
      # New graph and session.
      with ops.Graph().as_default() as g:
          with self.session(graph=g) as session:
              with variable_scope.variable_scope(
                  "some_scope", initializer=init_ops.zeros_initializer()
              ):
                  my1 = variable_scope.get_variable("my1", [1, 10])
  
              before = my1.initialized_value()
  
              checkpoint_utils.init_from_checkpoint(
                  checkpoint_dir, {"var1": my1}
              )
  
              after = my1.initialized_value()
  
              self.assertAllEqual(session.run(before), [[0.0] * 10])
              self.assertAllEqual(session.run(after), v1)
  
              session.run(variables.global_variables_initializer())
  
              self.assertAllEqual(session.run(my1), v1)
              self.assertAllEqual(
                  session.run(my1.initialized_value()), v1
              )
              self.assertAllClose(session.run(before), v1)
              self.assertAllClose(session.run(after), v1)
              with self.assertRaises(AssertionError):
                  self.assertAllClose(v1, [[0.0] * 10])
  
imports: import os
  import pathlib
  import time
  import numpy
  from tensorflow.core.protobuf import config_pb2
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.client import session
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import gfile
  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 7 for calling the CheckpointsTest obj's underlying member method code with example usage: obj.testInitialValueComesFromCheckpoint() without return types