docstr: Tests that parameter P is set correctly. Note that dist.p != dist.pdf.
docstr_tok: ["Tests","that","parameter","P","is","set","correctly",".","Note","that","dist.p","!","=","dist.pdf","."]
code: def testP(self):
      """Tests that parameter P is set correctly. Note that dist.p != dist.pdf."""
      temperature = 1.0
      p = [0.1, 0.4]
      dist = relaxed_bernoulli.RelaxedBernoulli(
          temperature, probs=p, validate_args=True
      )
      self.assertAllClose(p, self.evaluate(dist.probs))
  
imports: import numpy
  import scipy.special
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import relaxed_bernoulli
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the RelaxedBernoulliTest obj's underlying member method code with example usage: obj.testP() without return types