code: def _test(self, probs, n):
      rv = Bernoulli(probs)
      dist = ds.Bernoulli(probs)
      x = rv.sample(n).eval()
      self.assertAllEqual(
          rv.log_prob(x).eval(), dist.log_prob(x).eval()
      )
  
file_path: edward/tests/models/bernoulli_log_prob_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from edward.models import Bernoulli
  from tensorflow.contrib import distributions
label_desc: Use image node_id 1 for calling the test_bernoulli_log_prob_class obj's underlying member method code with example usage: obj._test(probs, n) without return types