code: def testInvalidNegativeCount(self):
      invalid_rs = [
          -3.0,
          0.0,
          -2.0,
      ]
      with self.assertRaisesOpError(
          "`total_count` has components less than or equal to 0."
      ):
          negbinom = negative_binomial.NegativeBinomial(
              total_count=invalid_rs, probs=0.1, validate_args=True
          )
          self.evaluate(negbinom.sample(seed=test_util.test_seed()))
  
      invalid_rs = [3.0, 2.0, 0.0]
      with self.assertRaisesOpError(
          "`total_count` has components less than or equal to 0."
      ):
          negbinom = negative_binomial.NegativeBinomial(
              total_count=invalid_rs, probs=0.1, validate_args=True
          )
          self.evaluate(negbinom.sample(seed=test_util.test_seed()))
  
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import negative_binomial
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 6 for calling the NegativeBinomialTest obj's underlying member method code with example usage: obj.testInvalidNegativeCount() without return types