docstr: Redefining the same builder twice should raises error.
docstr_tok: ["Redefining","the","same","builder","twice","should","raises","error","."]
code: def test_duplicate_dataset(self):
      """Redefining the same builder twice should raises error."""
  
      class DuplicateBuilder(
          registered.RegisteredDataset
      ):  # pylint: disable=unused-variable
          pass
  
      with self.assertRaisesWithPredicateMatch(
          ValueError, "already registered"
      ):
  
          class DuplicateBuilder(
              registered.RegisteredDataset
          ):  # pylint: disable=function-redefined
              pass
  
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 11 for calling the RegisteredTest obj's underlying member method code with example usage: obj.test_duplicate_dataset() without return types