class_docstr: Tests the correctness of the Y = Invert(bij) transformation.
code: def testSharedCaching(self):
      for fwd in [
          exp.Exp(),
          shift.Shift(2.0),
      ]:
          x = tf.constant([0.5, -1.0], dtype=tf.float32)
          inv = invert.Invert(fwd)
          y = fwd.forward(x)
  
          self.assertIs(inv.forward(y), x)
          self.assertIs(inv.inverse(x), y)
  
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 6 for calling the InvertBijectorTest obj's underlying member method code with example usage: obj.testSharedCaching() without return types