class_docstr: Test the Polynomial kernel.
class_docstr_tok: ["Test","the","Polynomial","kernel","."]
code: def testExponentInteger(self):
      with self.assertRaisesOpError("`exponent` must be an integer."):
          k = polynomial.Polynomial(
              bias_amplitude=1.0,
              slope_amplitude=1.0,
              exponent=1.5,
              validate_args=True,
          )
          self.evaluate(k.apply([1.0], [1.0]))
  
      # No error
      k = polynomial.Polynomial(
          bias_amplitude=1.0,
          slope_amplitude=1.0,
          exponent=3.0,
          validate_args=True,
      )
      self.evaluate(k.apply([1.0], [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 4 for calling the PolynomialTest obj's underlying member method code with example usage: obj.testExponentInteger() without return types