code: def make_checkpoint(self, checkpoint_name, definition):
      scopes = {}
      tf.reset_default_graph()
      [
          tf.Variable(definition[k], name=k, dtype=np.float32)
          for k in definition
      ]
      with tf.Session() as sess:
          saver = tf.train.Saver()
          sess.run(tf.global_variables_initializer())
          fn = os.path.join("testing_data", checkpoint_name)
          saver.save(sess, fn)
      return fn
  
file_path: NiftyNet/tests/restorer_test.py
imports: from __future__ import absolute_import, print_function
  import os
  import numpy
  import tensorflow
  from niftynet.engine.application_variables import RESTORABLE, global_vars_init_or_restore
  from niftynet.layer.convolution import ConvolutionalLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the RestorerTest obj's underlying member method code with example usage: obj.make_checkpoint(checkpoint_name, definition) and returns: fn