class_docstr: Tests correctness of the Permute bijector.
class_docstr_tok: ["Tests","correctness","of","the","Permute","bijector","."]
code: def testBijectiveAndFinite(self):
      permutation = np.int32([2, 0, 1])
      x = np.random.randn(4, 2, 3)
      y = x[..., permutation]
      bijector = permute.Permute(
          permutation=permutation, validate_args=True
      )
      bijector_test_util.assert_bijective_and_finite(
          bijector,
          x,
          y,
          eval_func=self.evaluate,
          event_ndims=1,
          rtol=1e-6,
          atol=0,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/permute_test.py
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 permute
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.internal import tf_keras
label_desc: Use image node_id 4 for calling the PermuteBijectorTest obj's underlying member method code with example usage: obj.testBijectiveAndFinite() without return types