code: def testPmfNonIntegerCounts(self):
      alpha = [[1.0, 2, 3]]
      n = [[5.0]]
      dist = dm.DirichletMultinomial(n, alpha, validate_args=True)
      self.evaluate(dist.prob([2.0, 3, 0]))
      self.evaluate(dist.prob([3.0, 0, 2]))
      self.evaluate(dist.prob([3.0, 0, 2.0]))
      # Both equality and integer checking fail.
      placeholder = tf1.placeholder_with_default(
          [1.0, 2.5, 1.5], shape=None
      )
      with self.assertRaisesOpError(
          "cannot contain fractional components"
      ):
          self.evaluate(dist.prob(placeholder))
      dist = dm.DirichletMultinomial(n, alpha, validate_args=False)
      self.evaluate(dist.prob([1.0, 2.0, 3.0]))
      # Non-integer arguments work.
      self.evaluate(dist.prob([1.0, 2.5, 1.5]))
  
imports: import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import dirichlet_multinomial
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math import gradient
label_desc: Use image node_id 7 for calling the DirichletMultinomialTest obj's underlying member method code with example usage: obj.testPmfNonIntegerCounts() without return types