code: def test_label(self):
      self.assertFeature(
          feature=feature_lib.Sequence(
              {
                  "label": feature_lib.ClassLabel(
                      names=["left", "right"]
                  ),
              },
              length=None,
          ),
          shape={"label": (None,)},
          dtype={"label": np.int64},
          serialized_info={
              "label": feature_lib.TensorInfo(
                  shape=(None,), dtype=np.int64
              ),
          },
          tests=[
              testing.FeatureExpectationItem(
                  value={"label": ["right", "left", "left"]},
                  expected={"label": [1, 0, 0]},
                  expected_np={"label": [1, 0, 0]},
              ),
              # Variable sequence length
              testing.FeatureExpectationItem(
                  value={"label": ["right", "left", "right", "left"]},
                  expected={"label": [1, 0, 1, 0]},
                  expected_np={"label": [1, 0, 1, 0]},
              ),
              # Empty sequence length
              testing.FeatureExpectationItem(
                  value={"label": []},
                  expected={"label": []},
                  expected_np={"label": []},
              ),
          ],
          test_attributes=dict(_length=None),
      )
  
imports: import numpy
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import features
label_desc: Use image node_id 2 for calling the SequenceDictFeatureTest obj's underlying member method code with example usage: obj.test_label() without return types