code: def testUnsupportedTypes(self):
      for dtype in [
          dtypes.bool,
          dtypes.double,
          dtypes.complex64,
          dtypes.float32,
          dtypes.float64,
          dtypes.qint16,
          dtypes.qint32,
      ]:
          with self.assertRaises(TypeError):
              _ = dataset_ops.Dataset.from_generator(
                  lambda: [], dtype
              ).unique()
  
imports: from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import dtypes
  from tensorflow.python.platform import test
  from tensorflow.python.util import compat
label_desc: Use image node_id 4 for calling the UniqueTest obj's underlying member method code with example usage: obj.testUnsupportedTypes() without return types