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