class_docstr: Tests correctness of the Y = g(X) = tanh(X) transformation.
class_docstr_tok: ["Tests","correctness","of","the","Y","=","g","(","X",")","=","tanh","(","X",")","transformation","."]
code: def testScalarCongruency(self):
      bijector_test_util.assert_scalar_congruency(
          tanh.Tanh(),
          lower_x=-7.0,
          upper_x=7.0,
          eval_func=self.evaluate,
          n=int(10e4),
          rtol=0.5,
      )
  
file_path: probability/tensorflow_probability/python/bijectors/tanh_test.py
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import bijector_test_util
  from tensorflow_probability.python.bijectors import chain
  from tensorflow_probability.python.bijectors import scale
  from tensorflow_probability.python.bijectors import shift
  from tensorflow_probability.python.bijectors import sigmoid
  from tensorflow_probability.python.bijectors import tanh
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 2 for calling the TanhBijectorTest obj's underlying member method code with example usage: obj.testScalarCongruency() without return types