code: def test_beta_bernoulli(self):
      x_data = np.array([0, 1, 0, 0, 0, 0, 0, 0, 0, 1])
  
      a0 = 0.5
      b0 = 1.5
      pi = rvs.Beta(a0, b0)
      x = rvs.Bernoulli(probs=pi, sample_shape=10)
  
      pi_cond = ed.complete_conditional(pi, [pi, x])
  
      self.assertIsInstance(pi_cond, rvs.Beta)
  
      with self.test_session() as sess:
          a_val, b_val = sess.run(
              [pi_cond.concentration1, pi_cond.concentration0],
              {x: x_data},
          )
  
      self.assertAllClose(a_val, a0 + x_data.sum())
      self.assertAllClose(b_val, b0 + (1 - x_data).sum())
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import edward
  import numpy
  import tensorflow
  from edward import models
label_desc: Use image node_id 5 for calling the test_conjugacy_class obj's underlying member method code with example usage: obj.test_beta_bernoulli() without return types