class_docstr: Tests correctness of the DiscreteCosineTransform bijector.
code: def testBijectiveAndFinite(self):
      x = np.linspace(-10.0, 10.0, num=10).astype(np.float32)
      y = np.linspace(0.01, 0.99, num=10).astype(np.float32)
      for dct_type in 2, 3:
          bijector_test_util.assert_bijective_and_finite(
              discrete_cosine_transform.DiscreteCosineTransform(
                  dct_type=dct_type, validate_args=True
              ),
              x,
              y,
              eval_func=self.evaluate,
              event_ndims=1,
              rtol=1e-3,
          )
  
file_path: probability/tensorflow_probability/python/bijectors/discrete_cosine_transform_test.py
imports: import numpy
  from scipy import fftpack
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import discrete_cosine_transform
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 3 for calling the DiscreteCosineTransformTest obj's underlying member method code with example usage: obj.testBijectiveAndFinite() without return types