class_docstr: Tests correctness of the softclip transformation.
class_docstr_tok: ["Tests","correctness","of","the","softclip","transformation","."]
code: def test_raises_exception_on_invalid_input(self):
      b = soft_clip.SoftClip(3.0, 5.0, validate_args=True)
      with self.assertRaisesRegex(
          tf.errors.InvalidArgumentError,
          "Input must be greater than `low`",
      ):
          b.inverse(2.0)
  
      with self.assertRaisesOpError("Input must be less than `high`"):
          dynamic_y = tf1.placeholder_with_default(input=7.0, shape=[])
          x = b.inverse(dynamic_y)
          self.evaluate(x)
  
file_path: probability/tensorflow_probability/python/bijectors/soft_clip_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.bijectors import soft_clip
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 4 for calling the _SoftClipBijectorBase obj's underlying member method code with example usage: obj.test_raises_exception_on_invalid_input() without return types