class_docstr: Mixin test for Matern type kernels.
  
  Subclasses must specify _kernel_type and _numpy_kernel.
code: def testBatchShape(self):
      amplitude = np.random.uniform(2, 3.0, size=[3, 1, 2]).astype(
          np.float32
      )
      length_scale = np.random.uniform(2, 3.0, size=[1, 3, 1]).astype(
          np.float32
      )
      k = self._kernel_type(amplitude, length_scale)
      self.assertAllEqual(tf.TensorShape([3, 3, 2]), k.batch_shape)
      self.assertAllEqual(
          [3, 3, 2], self.evaluate(k.batch_shape_tensor())
      )
  
imports: from absl.testing import parameterized
  import numpy
  import scipy.special
  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 matern
label_desc: Use image node_id 2 for calling the _MaternTestCase obj's underlying member method code with example usage: obj.testBatchShape() without return types