class_docstr: Test the Constant kernel.
class_docstr_tok: ["Test","the","Constant","kernel","."]
code: def testBatchShape(self):
      constant = tf.ones([5, 2, 3], dtype=tf.float32)
      k = polynomial.Constant(constant=constant)
      self.assertAllEqual([5, 2, 3], k.batch_shape)
  
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 ConstantTest obj's underlying member method code with example usage: obj.testBatchShape() without return types