class_docstr: Tests correctness of the `Transpose` bijector.
class_docstr_tok: ["Tests","correctness","of","the","`","Transpose","`","bijector","."]
code: def testTransformedDist(self):
      d = independent.Independent(
          normal.Normal(tf.zeros([4, 3, 2]), 1), 3
      )
      dt = transpose.Transpose([1, 0])(d)
      self.assertEqual((4, 3, 2), d.event_shape)
      self.assertEqual((4, 2, 3), dt.event_shape)
      dt = invert.Invert(transpose.Transpose([1, 0, 2]))(d)
      self.assertEqual((4, 3, 2), d.event_shape)
      self.assertEqual((3, 4, 2), dt.event_shape)
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import invert
  from tensorflow_probability.python.bijectors import transpose
  from tensorflow_probability.python.distributions import independent
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 5 for calling the _TransposeBijectorTest obj's underlying member method code with example usage: obj.testTransformedDist() without return types