class_docstr: Bernoulli Distribution 
class_docstr_tok: ["Bernoulli","Distribution"]
docstr: Returns pmf of distribution at x. 
code: def pmf(self, x):
      """Returns pmf of distribution at x."""
      return np.asscalar(self.p * x + (1 - x) * (1 - self.p))
  
imports: from __future__ import absolute_import
  import numpy
  from .distribution import Discrete
  from ..exd import domains
label_desc: Use image node_id 2 for calling the Bernoulli obj's underlying member method code with example usage: obj.pmf(x) and returns: np