code: def _create_checkpoints(sess, checkpoint_dir):
      checkpoint_prefix = os.path.join(checkpoint_dir, "model")
      checkpoint_state_name = "checkpoint"
      v1 = variable_scope.get_variable("var1", [1, 10])
      v2 = variable_scope.get_variable("var2", [10, 10])
      sess.run(variables.global_variables_initializer())
      v1_value, v2_value = sess.run([v1, v2])
      saver = saver_lib.Saver()
      saver.save(
          sess,
          checkpoint_prefix,
          global_step=0,
          latest_filename=checkpoint_state_name,
      )
      return v1_value, v2_value
  
file_path: tensorflow/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 1 for calling a global function with example usage: _create_checkpoints(sess, checkpoint_dir) and returns: v1_value,  v2_value