code: def gen_data(z, hidden_units):
      net = tf.layers.dense(z, hidden_units, activation=leakyrelu)
      net = tf.layers.dense(net, 784, activation=tf.sigmoid)
      return net
  
file_path: edward/examples/bigan.py
imports: from __future__ import absolute_import
  from __future__ import print_function
  from __future__ import division
  import edward
  import matplotlib.pyplot
  import matplotlib.gridspec
  import numpy
  import os
  import tensorflow
  from observations import mnist
label_desc: Use image node_id 4 for calling a global function with example usage: gen_data(z, hidden_units) and returns: net