code: def testUnsupportedTypeToDLPack(self):
      def UnsupportedQint16():
          tf_tensor = constant_op.constant(
              [[1, 4], [5, 2]], dtype=dtypes.qint16
          )
          _ = dlpack.to_dlpack(tf_tensor)
  
      self.assertRaisesRegex(
          Exception, ".* is not supported by dlpack", UnsupportedQint16
      )
  
file_path: tensorflow-upstream/tensorflow/python/dlpack/dlpack_test.py
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.dlpack import dlpack
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.platform import test
  from tensorflow.python.ops import array_ops
label_desc: Use image node_id 4 for calling the DLPackTest obj's underlying member method code with example usage: obj.testUnsupportedTypeToDLPack() without return types