code: def testEventDtype(self):
      for power_dtype in [tf.float32, tf.float64]:
          for event_dtype in [
              tf.int32,
              tf.int64,
              tf.float32,
              tf.float64,
          ]:
              power_dtype = tf.float32
              event_dtype = tf.int32
              power = tf.constant(5.0, dtype=power_dtype)
              dist = zipf.Zipf(
                  power=power, dtype=event_dtype, validate_args=True
              )
              self.assertEqual(dist.dtype, event_dtype)
              self.assertEqual(
                  dist.dtype,
                  dist.sample(10, seed=test_util.test_seed()).dtype,
              )
              self.assertEqual(
                  dist.dtype,
                  dist.sample(1, seed=test_util.test_seed()).dtype,
              )
              self.assertEqual(dist.dtype, dist.mode().dtype)
  
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 7 for calling the ZipfTest obj's underlying member method code with example usage: obj.testEventDtype() without return types