code: def get_session(graph_path):
      # load graph
      with tf.gfile.GFile(graph_path, "rb") as f:
          graph_def = tf.GraphDef()
          graph_def.ParseFromString(f.read())
  
      with tf.Graph().as_default() as graph:
          tf.import_graph_def(
              graph_def,
              input_map=None,
              return_elements=None,
              name="deeplab",
              producer_op_list=None,
          )
  
      graph_options = tf.GPUOptions(
          visible_device_list="0", allow_growth=True
      )
      config = config = tf.ConfigProto(gpu_options=graph_options)
      sess = tf.Session(graph=graph, config=config)
      return sess
  
file_path: chainercv/examples/deeplab/tf2npz.py
imports: import argparse
  import chainer
  from chainercv.datasets import ade20k_semantic_segmentation_label_names
  from chainercv.datasets import cityscapes_semantic_segmentation_label_names
  from chainercv.datasets import voc_semantic_segmentation_label_names
  from chainercv.links import DeepLabV3plusXception65
  import tensorflow
label_desc: Use image node_id 3 for calling a global function with example usage: get_session(graph_path) and returns: sess