class_docstr: Bernoulli Distribution 
class_docstr_tok: ["Bernoulli","Distribution"]
docstr: Constructor. 
code: def __init__(self, p):
      """Constructor."""
      super(Bernoulli, self).__init__()
      self.p = float(p)
      self.dim = 1
      self.domain = domains.IntegralDomain([[0, 1]])
  
imports: from __future__ import absolute_import
  import numpy
  from .distribution import Discrete
  from ..exd import domains
label_desc: Use image node_id 1 to create a new Bernoulli object from inherited base classes: Discrete with example: obj = Bernoulli(p)