code: def build_graph(self, orig_image):
      mean = tf.get_variable("resnet_v1_50/mean_rgb", shape=[3])
      with guided_relu():
          with slim.arg_scope(resnet_v1.resnet_arg_scope()):
              image = tf.expand_dims(orig_image - mean, 0)
              logits, _ = resnet_v1.resnet_v1_50(
                  image, 1000, is_training=False
              )
          saliency_map(logits, orig_image, name="saliency")
  
file_path: tensorpack/examples/Saliency/saliency-maps.py
imports: import numpy
  import sys
  from contextlib import contextmanager
  import cv2
  import tensorflow
  import tensorflow.contrib.slim
  from tensorflow.contrib.slim.nets import resnet_v1
  import tensorpack
  import tensorpack.utils.viz
  from tensorpack.tfutils import get_tf_version_tuple
label_desc: Use image node_id 2 for calling the Model obj's underlying member method code with example usage: obj.build_graph(orig_image) without return types