code: def testShapes(self):
      for batch_shape in ([], [1], [2, 3, 4]):
          dist = make_bernoulli(batch_shape)
          self.assertAllEqual(batch_shape, dist.batch_shape.as_list())
          self.assertAllEqual(
              batch_shape, self.evaluate(dist.batch_shape_tensor())
          )
          self.assertAllEqual([], dist.event_shape.as_list())
          self.assertAllEqual(
              [], self.evaluate(dist.event_shape_tensor())
          )
  
imports: import importlib
  import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.distributions import bernoulli
  from tensorflow.python.ops.distributions import kullback_leibler
  from tensorflow.python.platform import test
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 4 for calling the BernoulliTest obj's underlying member method code with example usage: obj.testShapes() without return types