class_docstr: Tests correctness of the NormalCDF bijector.
class_docstr_tok: ["Tests","correctness","of","the","NormalCDF","bijector","."]
code: def testBijector(self):
      bijector = normal_cdf.NormalCDF(validate_args=True)
      self.assertStartsWith(bijector.name, "normal")
      x = np.array(
          [[[-3.0], [0.0], [0.5], [4.2], [5.0]]], dtype=np.float64
      )
      # Normal distribution
      normal_dist = stats.norm(loc=0.0, scale=1.0)
      y = normal_dist.cdf(x).astype(np.float64)
      self.assertAllClose(y, self.evaluate(bijector.forward(x)))
      self.assertAllClose(
          x, self.evaluate(bijector.inverse(y)), rtol=1e-4
      )
      self.assertAllClose(
          np.squeeze(normal_dist.logpdf(x), axis=-1),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=1)
          ),
      )
      self.assertAllClose(
          self.evaluate(
              -bijector.inverse_log_det_jacobian(y, event_ndims=1)
          ),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=1)
          ),
          rtol=1e-4,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/normal_cdf_test.py
imports: import numpy
  from scipy import stats
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import normal_cdf
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the NormalCDFBijectorTest obj's underlying member method code with example usage: obj.testBijector() without return types