code: def testConvertListWithInconsistentDtype(self):
      converter = self.makePythonTensorConverter()
      with self.assertRaisesRegex(
          (TypeError, ValueError),
          "Can't convert Python sequence with mixed types to Tensor."
          "|Failed to convert",
      ):
          converter.Convert([[1, 2], ["a", "b"]], types_pb2.DT_INVALID)
  
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_tensor_converter
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 12 for calling the PythonTensorConverterTest obj's underlying member method code with example usage: obj.testConvertListWithInconsistentDtype() without return types