class_docstr: Test the abstract base class behaviors.
class_docstr_tok: ["Test","the","abstract","base","class","behaviors","."]
code: def testFeatureNdimsExceptions(self, feature_ndims):
      class FeatureNdimsKernel(psd_kernel.PositiveSemidefiniteKernel):
          def __init__(self):
              super(FeatureNdimsKernel, self).__init__(feature_ndims)
  
      with self.assertRaises(ValueError):
          FeatureNdimsKernel()
  
imports: import functools
  import operator
  from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v1
  import tensorflow.compat.v2
  from tensorflow_probability.python.internal import parameter_properties
  from tensorflow_probability.python.internal import test_util
  from tensorflow_probability.python.math.psd_kernels import positive_semidefinite_kernel
  from tensorflow_probability.python.math.psd_kernels.internal import test_util
  from tensorflow_probability.python.math.psd_kernels.internal import util
label_desc: Use image node_id 7 for calling the PositiveSemidefiniteKernelTest obj's underlying member method code with example usage: obj.testFeatureNdimsExceptions(feature_ndims) without return types