class_docstr: Tests the PoissonLogNormalQuadratureCompoundTest distribution.
class_docstr_tok: ["Tests","the","PoissonLogNormalQuadratureCompoundTest","distribution","."]
code: def testAssertValidSample(self):
      pln = pl.PoissonLogNormalQuadratureCompound(
          loc=tf1.placeholder_with_default(
              0.0, shape=[] if self.static_shape else None
          ),
          scale=tf1.placeholder_with_default(
              1.0, shape=[] if self.static_shape else None
          ),
          quadrature_size=10,
          validate_args=True,
      )
      with self.assertRaisesOpError("Sample must be non-negative."):
          self.evaluate(pln.log_prob([-1.2, 3.0, 4.2]))
  
imports: import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import poisson_lognormal
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 9 for calling the _PoissonLogNormalQuadratureCompoundTest obj's underlying member method code with example usage: obj.testAssertValidSample() without return types