code: def test_graph(self):
      with tf.Session():
          with tf.Graph().as_default() as g:
              nets.vgg.vgg_16(
                  tf.placeholder(tf.float32, shape=(1, 224, 224, 3))
              )
              dot = hl.build_graph(g).build_dot()
              dot.format = "pdf"
              dot.render("tf_vgg16", directory=OUTPUT_DIR, cleanup=True)
  
      with tf.Session():
          with tf.Graph().as_default() as g:
              nets.resnet_v1.resnet_v1_50(
                  tf.placeholder(tf.float32, shape=(1, 224, 224, 3))
              )
              dot = hl.build_graph(g).build_dot()
              dot.format = "pdf"
              dot.render(
                  "tf_resnet50", directory=OUTPUT_DIR, cleanup=True
              )
  
      with tf.Session():
          with tf.Graph().as_default() as g:
              nets.inception.inception_v1(
                  tf.placeholder(tf.float32, shape=(1, 224, 224, 3))
              )
              dot = hl.build_graph(g).build_dot()
              dot.format = "pdf"
              dot.render(
                  "tf_inception", directory=OUTPUT_DIR, cleanup=True
              )
  
      with tf.Session():
          with tf.Graph().as_default() as g:
              nets.alexnet.alexnet_v2(
                  tf.placeholder(tf.float32, shape=(1, 224, 224, 3))
              )
              dot = hl.build_graph(g).build_dot()
              dot.format = "pdf"
              dot.render(
                  "tf_alexnet", directory=OUTPUT_DIR, cleanup=True
              )
  
      with tf.Session():
          with tf.Graph().as_default() as g:
              nets.overfeat.overfeat(
                  tf.placeholder(tf.float32, shape=(1, 231, 231, 3))
              )
              dot = hl.build_graph(g).build_dot()
              dot.format = "pdf"
              dot.render(
                  "tf_overfeat", directory=OUTPUT_DIR, cleanup=True
              )
  
      # Clean up
      shutil.rmtree(OUTPUT_DIR)
  
file_path: hiddenlayer/tests/test_tf_graph.py
imports: import os
  import sys
  import shutil
  import unittest
  import tensorflow
  import tensorflow.contrib.slim.nets
  from tensorflow.contrib import layers
  import hiddenlayer
label_desc: Use image node_id 1 for calling the TestSlimModels obj's underlying member method code with example usage: obj.test_graph() without return types