class_docstr: Test the Polynomial kernel.
class_docstr_tok: ["Test","the","Polynomial","kernel","."]
code: def testBatchShape(
      self, bias_amplitude, slope_amplitude, shift, exponent, shape
  ):
      k = polynomial.Polynomial(
          bias_amplitude=bias_amplitude,
          slope_amplitude=slope_amplitude,
          shift=shift,
          exponent=exponent,
          validate_args=True,
      )
      self.assertAllEqual(shape, k.batch_shape)
      self.assertAllEqual(shape, self.evaluate(k.batch_shape_tensor()))
  
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 8 for calling the PolynomialTest obj's underlying member method code with example usage: obj.testBatchShape(bias_amplitude, slope_amplitude, shift, exponent, shape) without return types