class_docstr: Tests the correctness of the CorrelationCholesky bijector.
class_docstr_tok: ["Tests","the","correctness","of","the","CorrelationCholesky","bijector","."]
code: def testShapeError(self):
      b = fill_triangular.FillTriangular(validate_args=True)
  
      x_shape_bad = tf.TensorShape([5, 4, 7])
      with self.assertRaisesRegexp(
          ValueError, "is not a triangular number"
      ):
          b.forward_event_shape(x_shape_bad)
      with self.assertRaisesOpError("is not a triangular number"):
          self.evaluate(
              b.forward_event_shape_tensor(
                  tensorshape_util.as_list(x_shape_bad)
              )
          )
  
      y_shape_bad = tf.TensorShape([5, 4, 4, 3])
      with self.assertRaisesRegexp(ValueError, "Matrix must be square"):
          b.inverse_event_shape(y_shape_bad)
      with self.assertRaisesOpError("Matrix must be square"):
          self.evaluate(
              b.inverse_event_shape_tensor(
                  tensorshape_util.as_list(y_shape_bad)
              )
          )
  
imports: import itertools
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import correlation_cholesky
  from tensorflow_probability.python.bijectors import fill_triangular
  from tensorflow_probability.python.distributions import beta
  from tensorflow_probability.python.distributions import cholesky_lkj
  from tensorflow_probability.python.distributions import lkj
  from tensorflow_probability.python.distributions.internal import statistical_testing
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.mcmc import hmc
  from tensorflow_probability.python.mcmc import sample
  from tensorflow_probability.python.mcmc import transformed_kernel
label_desc: Use image node_id 4 for calling the CorrelationCholeskyBijectorTest obj's underlying member method code with example usage: obj.testShapeError() without return types