code: def testInvalidEventDtype(self):
      with self.assertRaisesWithPredicateMatch(
          TypeError, "power.dtype .* not a supported .* type"
      ):
          power = tf.constant(5.0, dtype=tf.float16)
          dist = zipf.Zipf(
              power=power, dtype=tf.int32, validate_args=True
          )
          self.evaluate(dist.sample(seed=test_util.test_seed()))
  
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 8 for calling the ZipfTest obj's underlying member method code with example usage: obj.testInvalidEventDtype() without return types