class_docstr: Tests the correctness of the Y = Invert(bij) transformation.
code: def testNoReductionWhenEventNdimsIsOmitted(self):
      x = np.array([0.5, 2.0]).astype(np.float32)
      bij = invert.Invert(exp.Exp())
      self.assertAllClose(
          -np.log(x), self.evaluate(bij.forward_log_det_jacobian(x))
      )
      self.assertAllClose(
          x, self.evaluate(bij.inverse_log_det_jacobian(x))
      )
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import exp
  from tensorflow_probability.python.bijectors import identity
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.bijectors import scale_matvec_diag
  from tensorflow_probability.python.bijectors import shift
  from tensorflow_probability.python.bijectors import softmax_centered
  from tensorflow_probability.python.bijectors import softplus
  from tensorflow_probability.python.distributions import gamma
  from tensorflow_probability.python.distributions import transformed_distribution
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 7 for calling the InvertBijectorTest obj's underlying member method code with example usage: obj.testNoReductionWhenEventNdimsIsOmitted() without return types