code: def test_scale(self):
      self.assertAllClose(
          np.log(3.0) - np.log(2.0),
          ldj_ratio.forward_log_det_jacobian_ratio(
              scale.Scale(3.0),
              0.0,
              scale.Scale(-2.0),
              0.0,
              event_ndims=0,
          ),
      )
      self.assertAllClose(
          np.log(2.0) - np.log(3.0),
          ldj_ratio.inverse_log_det_jacobian_ratio(
              scale.Scale(3.0),
              0.0,
              scale.Scale(-2.0),
              0.0,
              event_ndims=0,
          ),
      )
  
file_path: probability/tensorflow_probability/python/bijectors/ldj_ratio_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import exp
  from tensorflow_probability.python.bijectors import ldj_ratio
  from tensorflow_probability.python.bijectors import reciprocal
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.bijectors import scale_matvec_diag
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 1 for calling the LdjRatioTest obj's underlying member method code with example usage: obj.test_scale() without return types