class_docstr: Tests correctness of Stick breaking transformation.
class_docstr_tok: ["Tests","correctness","of","Stick","breaking","transformation","."]
code: def testBijectiveAndFinite(self):
      iterated_sigmoid = (
          iterated_sigmoid_centered.IteratedSigmoidCentered()
      )
  
      # Grid of points in [-30, 30] x [-30, 30].
      x = (
          np.mgrid[-30:30:0.5, -30:30:0.5].reshape(2, -1).T
      )  # pylint: disable=invalid-slice-index
      # Make y values on the simplex with a wide range.
      y_0 = np.ones(x.shape[0], dtype=self.dtype)
      y_1 = self.dtype(1e-3 * np.random.rand(x.shape[0]))
      y_2 = self.dtype(1e1 * np.random.rand(x.shape[0]))
      y = np.array([y_0, y_1, y_2])
      y /= y.sum(axis=0)
      y = y.T
      bijector_test_util.assert_bijective_and_finite(
          iterated_sigmoid, x, y, eval_func=self.evaluate, event_ndims=1
      )
  
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 4 for calling the _IteratedSigmoidCenteredBijectorTest obj's underlying member method code with example usage: obj.testBijectiveAndFinite() without return types