code: def testConvertError(
      self,
      param_names,
      input_specs,
      attr_specs,
      inputs,
      message,
      exception=TypeError,
  ):
      api_info = self.makeApiInfoFromParamSpecs(
          "TestFunc", param_names, input_specs, attr_specs
      )
      tensor_converter = self.makeTensorConverter()
      param_values = inputs()
      with self.assertRaisesRegex(exception, message):
          Convert(api_info, tensor_converter, param_values)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.core.framework import types_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import _pywrap_python_api_info
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework._pywrap_python_api_parameter_converter import Convert
  from tensorflow.python.framework._pywrap_python_tensor_converter import PythonTensorConverter
  from tensorflow.python.platform import googletest
  from tensorflow.python.util import nest
label_desc: Use image node_id 12 for calling the PythonAPIWrapperTest obj's underlying member method code with example usage: obj.testConvertError(param_names, input_specs, attr_specs, inputs, message, exception) without return types