class_docstr: Tests correctness of the power transformation.
class_docstr_tok: ["Tests","correctness","of","the","power","transformation","."]
code: def testBijectorVersusNumpyRewriteOfBasicFunctions(self):
      skewness = 0.2
      tailweight = 2.0
      multiplier = 2.0 / np.sinh(np.arcsinh(2.0) * tailweight)
      bijector = sinh_arcsinh.SinhArcsinh(
          skewness=skewness, tailweight=tailweight, validate_args=True
      )
      self.assertStartsWith(bijector.name, "sinh_arcsinh")
      x = np.array([[[-2.01], [2.0], [1e-4]]]).astype(np.float32)
      y = np.sinh((np.arcsinh(x) + skewness) * tailweight) * multiplier
      self.assertAllClose(y, self.evaluate(bijector.forward(x)))
      self.assertAllClose(x, self.evaluate(bijector.inverse(y)))
      self.assertAllClose(
          np.sum(
              np.log(
                  np.cosh(
                      np.arcsinh(y / multiplier) / tailweight - skewness
                  )
              )
              - np.log(tailweight)
              - np.log(np.sqrt((y / multiplier) ** 2 + 1))
              - np.log(multiplier),
              axis=-1,
          ),
          self.evaluate(
              bijector.inverse_log_det_jacobian(y, event_ndims=1)
          ),
          rtol=2e-6,
      )
      self.assertAllClose(
          self.evaluate(
              -bijector.inverse_log_det_jacobian(y, event_ndims=1)
          ),
          self.evaluate(
              bijector.forward_log_det_jacobian(x, event_ndims=1)
          ),
          rtol=1e-4,
          atol=0.0,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/sinh_arcsinh_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import sinh_arcsinh
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the SinhArcsinhTest obj's underlying member method code with example usage: obj.testBijectorVersusNumpyRewriteOfBasicFunctions() without return types