code: def test_duplicate_names(self):
      with self.assertRaisesWithPredicateMatch(
          ValueError, "label names are duplicated"
      ):
          features.ClassLabel(names=["label1", "label1", "label2"])
  
file_path: datasets/tensorflow_datasets/core/features/class_label_feature_test.py
imports: import textwrap
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import features
label_desc: Use image node_id 8 for calling the ClassLabelFeatureTest obj's underlying member method code with example usage: obj.test_duplicate_names() without return types