class_docstr: Tests correctness of the Y = scale @ x transformation.
class_docstr_tok: ["Tests","correctness","of","the","Y","=","scale","@","x","transformation","."]
code: def testModifiedVariableScaleAssertion(self):
      v = tf.Variable(1.0)
      self.evaluate(v.initializer)
      b = scale_lib.Scale(scale=v, validate_args=True)
      with self.assertRaisesOpError(
          "Argument `scale` must be non-zero"
      ):
          with tf.control_dependencies([v.assign(0.0)]):
              _ = self.evaluate(b.forward(1.0))
  
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 scale
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 11 for calling the ScaleBijectorTest obj's underlying member method code with example usage: obj.testModifiedVariableScaleAssertion() without return types