class_docstr: Mixin test for Matern type kernels.
  
  Subclasses must specify _kernel_type and _numpy_kernel.
code: def testMismatchedFloatTypesAreBad(self):
      self._kernel_type(1.0, 1)  # Should be OK (float32 fallback).
      self._kernel_type(1.0, np.float64(1.0))  # Should be OK.
      with self.assertRaises(TypeError):
          self._kernel_type(np.float32(1.0), np.float64(1.0))
  
      with self.assertRaises(TypeError):
          self._kernel_type(
              amplitude=np.float32(1.0),
              inverse_length_scale=np.float64(1.0),
          )
  
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 1 for calling the _MaternTestCase obj's underlying member method code with example usage: obj.testMismatchedFloatTypesAreBad() without return types