code: def load_model(model, ckpt_path, session, name):
      """Load model from a checkpoint."""
      start_time = time.time()
      try:
          model.saver.restore(session, ckpt_path)
      except tf.errors.NotFoundError as e:
          utils.print_out("Can't load checkpoint")
          print_variables_in_ckpt(ckpt_path)
          utils.print_out("%s" % str(e))
      session.run(tf.tables_initializer())
      utils.print_out(
          "  loaded %s model parameters from %s, time %.2fs"
          % (name, ckpt_path, time.time() - start_time)
      )
      return model
  
imports: from __future__ import print_function
  import collections
  import os
  import time
  import numpy
  import six
  import tensorflow
  from tensorflow.python.ops import lookup_ops
  from .utils import misc_utils, vocab_utils, iterator_utils
label_desc: Use image node_id 15 for calling a global function with example usage: load_model(model, ckpt_path, session, name) and returns: model