code: def testAssertValidSample(self):
      qdist = qd.QuantizedDistribution(
          distribution=uniform.Uniform(low=-3.0, high=3.0),
          low=-1.0,
          high=1.0,
          validate_args=True,
      )
      with self.assertRaisesOpError(
          "Sample has non-integer components."
      ):
          self.evaluate(qdist.prob([2.0, -1.7, 0.0]))
  
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import exponential
  from tensorflow_probability.python.distributions import logistic
  from tensorflow_probability.python.distributions import normal
  from tensorflow_probability.python.distributions import quantized_distribution
  from tensorflow_probability.python.distributions import uniform
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 20 for calling the QuantizedDistributionTest obj's underlying member method code with example usage: obj.testAssertValidSample() without return types