class_docstr: Tests the correctness of the Y = Invert(bij) transformation.
code: def testBijector(self):
      for fwd in [
          identity.Identity(),
          exp.Exp(),
          scale_matvec_diag.ScaleMatvecDiag(scale_diag=[2.0, 3.0]),
          softplus.Softplus(),
          softmax_centered.SoftmaxCentered(),
      ]:
          rev = invert.Invert(fwd)
          self.assertStartsWith(
              rev.name, "_".join(["invert", fwd.name])
          )
          x = [[[1.0, 2.0], [2.0, 3.0]]]
          self.assertAllClose(
              self.evaluate(fwd.inverse(x)),
              self.evaluate(rev.forward(x)),
          )
          self.assertAllClose(
              self.evaluate(fwd.forward(x)),
              self.evaluate(rev.inverse(x)),
          )
          self.assertAllClose(
              self.evaluate(
                  fwd.forward_log_det_jacobian(x, event_ndims=1)
              ),
              self.evaluate(
                  rev.inverse_log_det_jacobian(x, event_ndims=1)
              ),
          )
          self.assertAllClose(
              self.evaluate(
                  fwd.inverse_log_det_jacobian(x, event_ndims=1)
              ),
              self.evaluate(
                  rev.forward_log_det_jacobian(x, event_ndims=1)
              ),
          )
  
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 1 for calling the InvertBijectorTest obj's underlying member method code with example usage: obj.testBijector() without return types