class_docstr: Test the Polynomial kernel.
class_docstr_tok: ["Test","the","Polynomial","kernel","."]
code: def testValuesAreCorrect(self):
      bias_amplitude = 1.5
      slope_amplitude = 0.5
      shift = 1.0
      exponent = 2
      k = polynomial.Polynomial(
          bias_amplitude=bias_amplitude,
          slope_amplitude=slope_amplitude,
          shift=shift,
          exponent=exponent,
      )
      x = np.random.uniform(-1, 1, size=[5, 3]).astype(np.float32)
      y = np.random.uniform(-1, 1, size=[4, 3]).astype(np.float32)
      self.assertAllClose(
          (
              bias_amplitude**2
              + slope_amplitude**2
              * ((x - shift).dot((y - shift).T)) ** exponent
          ),
          self.evaluate(k.matrix(x, y)),
      )
  
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 14 for calling the PolynomialTest obj's underlying member method code with example usage: obj.testValuesAreCorrect() without return types