code: def testMismatchedFloatTypesAreBad(self):
      gamma_exponential.GammaExponential(
          1, 1
      )  # Should be OK (float32 fallback).
      gamma_exponential.GammaExponential(
          np.float32(1.0), 1.0
      )  # Should be OK.
      with self.assertRaises(TypeError):
          gamma_exponential.GammaExponential(
              np.float32(1.0), np.float64(1.0)
          )
  
file_path: probability/tensorflow_probability/python/math/psd_kernels/gamma_exponential_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.psd_kernels import exponentiated_quadratic
  from tensorflow_probability.python.math.psd_kernels import gamma_exponential
label_desc: Use image node_id 1 for calling the GammaExponentialTest obj's underlying member method code with example usage: obj.testMismatchedFloatTypesAreBad() without return types