code: def testCdfNotNanNearEndpoints(self):
      probs = np.linspace(0.0, 1.0, 30, dtype=np.float32)[..., None]
      temp = 1e-1
      dist = relaxed_bernoulli.RelaxedBernoulli(
          temp, probs=probs, validate_args=True
      )
      x = [0.0, 0.25, 0.5, 0.75, 1.0]
      cdf = self.evaluate(dist.cdf(x))
      self.assertFalse(np.any(np.isnan(cdf)))
      # Check that the CDF is strictly increasing for probs not in {0, 1}.
      self.assertTrue(np.all(np.diff(cdf[1:-1]) >= 0.0))
      self.assertAllEqual([1.0, 1.0, 1.0, 1.0, 1.0], cdf[0])
      self.assertAllEqual([0.0, 0.0, 0.0, 0.0, 1.0], cdf[-1])
  
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 17 for calling the RelaxedBernoulliTest obj's underlying member method code with example usage: obj.testCdfNotNanNearEndpoints() without return types