code: def test_registered_cls(self):
      name = "empty_dataset_builder"
      self.assertIs(load.builder_cls(name), EmptyDatasetBuilder)
  
      nonexistent = "nonexistent_foobar_dataset"
      with self.assertRaisesWithPredicateMatch(ValueError, "not found"):
          load.builder_cls(nonexistent)
  
      with self.assertRaisesWithPredicateMatch(
          ValueError, "`builder_cls` only accept the `dataset_name`"
      ):
          name_with_kwargs = "empty_dataset_builder/config:1.0.0"
          load.builder_cls(name_with_kwargs)
  
imports: import abc
  import re
  from unittest import mock
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import load
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils import py_utils
  import tensorflow_datasets.public_api
  from tensorflow_datasets.testing.dummy_config_based_datasets.dummy_ds_1 import dummy_ds_1_dataset_builder
label_desc: Use image node_id 2 for calling the RegisteredTest obj's underlying member method code with example usage: obj.test_registered_cls() without return types