code: def testConvertAttributeError(self, attr_type, attr_val, message):
      api_info = self.makeApiInfoFromParamSpecs(
          "Foo", ["x"], {}, {"x": attr_type}
      )
      tensor_converter = self.makeTensorConverter()
      with self.assertRaisesRegex(TypeError, message):
          Convert(api_info, tensor_converter, [attr_val])
  
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 10 for calling the PythonAPIWrapperTest obj's underlying member method code with example usage: obj.testConvertAttributeError(attr_type, attr_val, message) without return types