code: def test_bernoulli(self):
      with self.test_session():
          self._test(Bernoulli(0.5), [], [], [])
          self._test(Bernoulli(tf.zeros([2, 3])), [], [2, 3], [])
          self._test(Bernoulli(0.5, sample_shape=2), [2], [], [])
          self._test(
              Bernoulli(0.5, sample_shape=[2, 1]), [2, 1], [], []
          )
  
file_path: edward/tests/models/random_variable_shape_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  from edward.models import Bernoulli, Dirichlet
label_desc: Use image node_id 2 for calling the test_random_variable_shape_class obj's underlying member method code with example usage: obj.test_bernoulli() without return types