code: def testZipfLogPmf_InvalidArgs(self):
      power = tf.constant([4.0])
      # Non-integer samples are rejected if validate_args is True and
      # force_probs_to_zero_outside_support is True.
      dist = zipf.Zipf(
          power=power,
          force_probs_to_zero_outside_support=True,
          validate_args=True,
      )
      non_integer_samples = [0.99, 4.5, 5.001, 1e-5]
      for x in non_integer_samples:
          with self.assertRaisesOpError(
              "cannot contain fractional components"
          ):
              self.evaluate(dist.log_prob(x))
  
          with self.assertRaisesOpError(
              "cannot contain fractional components"
          ):
              self.evaluate(dist.prob(x))
  
      # Negative samples are rejected if validate_args is True.
      dist = zipf.Zipf(power=power, validate_args=True)
      negative_samples = [-3, -2, -1]
      for x in negative_samples:
          with self.assertRaisesOpError("must be non-negative"):
              self.evaluate(dist.log_prob(x))
  
          with self.assertRaisesOpError("must be non-negative"):
              self.evaluate(dist.prob(x))
  
imports: import numpy
  from scipy import stats
  import tensorflow.compat.v2
  from tensorflow_probability.python.distributions import zipf
  from tensorflow_probability.python.internal import test_util
label_desc: Use image node_id 9 for calling the ZipfTest obj's underlying member method code with example usage: obj.testZipfLogPmf_InvalidArgs() without return types