class_docstr: Tests correctness of the `Transpose` bijector.
class_docstr_tok: ["Tests","correctness","of","the","`","Transpose","`","bijector","."]
code: def testInvalidEventNdimsException(self):
      msg = "`rightmost_transposed_ndims` must be non-negative."
      with self.assertRaisesRegexp(ValueError, msg):
          transpose.Transpose(
              rightmost_transposed_ndims=-1, validate_args=True
          )
  
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 4 for calling the _TransposeBijectorTest obj's underlying member method code with example usage: obj.testInvalidEventNdimsException() without return types