code: def bernoulli_log_prob(self, val):
      probs = self.parameters["probs"]
      f_val = tf.cast(val, tf.float32)
      return f_val * tf.log(probs) + (1.0 - f_val) * tf.log(1.0 - probs)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  from edward.models.random_variables import *
label_desc: Use image node_id 2 for calling a global function with example usage: bernoulli_log_prob(val) and returns: unknown