class_docstr: Tests correctness of Stick breaking transformation.
class_docstr_tok: ["Tests","correctness","of","Stick","breaking","transformation","."]
code: def testJacobianConsistent(self):
      bijector = iterated_sigmoid_centered.IteratedSigmoidCentered()
      x = tf.constant((60 * np.random.rand(10) - 30).reshape(5, 2))
      jacobian_matrix = batch_jacobian(bijector.forward, x)
      # In our case, y[-1] is determined by all the other y, so we can drop it
      # for the jacobian calculation.
      jacobian_matrix = jacobian_matrix[..., :-1, :]
      self.assertAllClose(
          tf.linalg.slogdet(jacobian_matrix).log_abs_determinant,
          bijector.forward_log_det_jacobian(x, event_ndims=1),
          atol=0.0,
          rtol=1e-7,
      )
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import iterated_sigmoid_centered
  from tensorflow_probability.python.internal import tensorshape_util
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.gradient import batch_jacobian
label_desc: Use image node_id 5 for calling the _IteratedSigmoidCenteredBijectorTest obj's underlying member method code with example usage: obj.testJacobianConsistent() without return types