code: def testBoundaryConditions(self):
      temperature = 1e-2
      dist = relaxed_bernoulli.RelaxedBernoulli(
          temperature, probs=1.0, validate_args=True
      )
      self.assertAllClose(-np.inf, self.evaluate(dist.log_prob(0.0)))
      self.assertAllClose(np.inf, self.evaluate(dist.log_prob(1.0)))
  
      dist = relaxed_bernoulli.RelaxedBernoulli(
          temperature, probs=0.0, validate_args=True
      )
      self.assertAllClose(np.inf, self.evaluate(dist.log_prob(0.0)))
      self.assertAllClose(-np.inf, self.evaluate(dist.log_prob(1.0)))
  
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 8 for calling the RelaxedBernoulliTest obj's underlying member method code with example usage: obj.testBoundaryConditions() without return types