code: def load_graph_session_from_ckpt(
      ckpt_path, sess_config, print_op=False
  ):
      """load graph and session from checkpoint file"""
      graph = tf.Graph()
      with graph.as_default():  # pylint: disable=not-context-manager
          sess = get_session(sess_config)
          with sess.as_default():  # pylint: disable=not-context-manager
              # Load the saved meta graph and restore variables
              saver = tf.train.import_meta_graph(
                  "{}.meta".format(ckpt_path)
              )
              saver.restore(sess, ckpt_path)
          if print_op:
              print_ops(graph, prefix="load_graph_session_from_ckpt")
      return graph, sess
  
file_path: delta/delta/utils/model.py
imports: import os
  import numpy
  import hurry.filesize
  from absl import logging
  import delta.compat
  from tensorflow.python.framework import graph_util
label_desc: Use image node_id 8 for calling a global function with example usage: load_graph_session_from_ckpt(ckpt_path, sess_config, print_op) and returns: graph,  sess