code: def testRequireIntegerTotalCount(self):
      with self.assertRaisesOpError(
          "`total_count` has fractional components."
      ):
          d = negative_binomial.NegativeBinomial(
              total_count=2.5, probs=0.7, validate_args=True
          )
          self.evaluate(d.log_prob(5))
  
      d2 = negative_binomial.NegativeBinomial(
          total_count=2.5,
          probs=0.7,
          validate_args=True,
          require_integer_total_count=False,
      )
      self.evaluate(d2.log_prob(5))
  
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 24 for calling the NegativeBinomialTest obj's underlying member method code with example usage: obj.testRequireIntegerTotalCount() without return types