class_docstr: Bernoulli Distribution 
class_docstr_tok: ["Bernoulli","Distribution"]
docstr: Returns log probability of x 
code: def logp(self, x):
      """Returns log probability of x"""
      if x < 0 or x > 1:
          return -np.inf
      return x * np.log(self.p) + (1 - x) * np.log(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 5 for calling the Bernoulli obj's underlying member method code with example usage: obj.logp(x) and returns: unknown, unknown