class_docstr: Test the Polynomial kernel.
class_docstr_tok: ["Test","the","Polynomial","kernel","."]
code: def test_mismatched_float_types_are_bad(self):
      with self.assertRaises(TypeError):
          polynomial.Polynomial(
              bias_amplitude=np.float32(1.0),
              slope_amplitude=np.float64(1.0),
              shift=0.0,
              exponent=1.0,
          )
  
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 import gradient
  from tensorflow_probability.python.math.psd_kernels import polynomial
label_desc: Use image node_id 1 for calling the PolynomialTest obj's underlying member method code with example usage: obj.test_mismatched_float_types_are_bad() without return types