class_docstr: Test the Constant kernel.
class_docstr_tok: ["Test","the","Constant","kernel","."]
code: def testValuesAreCorrect(self):
      val = 0.1
      k = polynomial.Constant(constant=val)
      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(
          np.full((5, 4), val), 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 2 for calling the ConstantTest obj's underlying member method code with example usage: obj.testValuesAreCorrect() without return types