code: def test_feature(self):
      self.assertFeature(
          feature=features.ClassLabel(num_classes=10),
          dtype=tf.int64,
          shape=(),
          tests=[
              testing.FeatureExpectationItem(
                  value=3,
                  expected=3,
              ),
              testing.FeatureExpectationItem(
                  value="3",
                  expected=3,
              ),
              testing.FeatureExpectationItem(
                  value=10,
                  raise_cls=ValueError,
                  raise_msg="greater than configured num_classes",
              ),
              testing.FeatureExpectationItem(
                  value="10",
                  raise_cls=ValueError,
                  raise_msg="Invalid",
              ),
          ],
          test_attributes=dict(
              num_classes=10,
              names=["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"],
          ),
      )
  
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 1 for calling the ClassLabelFeatureTest obj's underlying member method code with example usage: obj.test_feature() without return types