code: def readout_func(self, inputs):
      size = tf.shape(inputs)[0]
      res = tf.sigmoid(tf.reduce_mean(inputs, axis=0, keep_dims=True))
      res = tf.tile(res, [size, 1, 1])
      return res
  
file_path: euler/examples/dgi/dgi.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  import tf_euler
label_desc: Use image node_id 5 for calling the DGIBase obj's underlying member method code with example usage: obj.readout_func(inputs) and returns: res