docstr: Redefining the same builder twice is possible on colab.
docstr_tok: ["Redefining","the","same","builder","twice","is","possible","on","colab","."]
code: def test_notebook_overwrite_dataset(self):
      """Redefining the same builder twice is possible on colab."""
  
      with mock.patch.object(py_utils, "is_notebook", lambda: True):
          name = "colab_builder"
          self.assertNotIn(name, load.list_builders())
  
          class ColabBuilder(EmptyDatasetBuilder):
              pass
  
          self.assertIn(name, load.list_builders())
          self.assertIsInstance(load.builder(name), ColabBuilder)
          old_colab_class = ColabBuilder
  
          class ColabBuilder(
              EmptyDatasetBuilder
          ):  # pylint: disable=function-redefined
              pass
  
          self.assertIsInstance(load.builder(name), ColabBuilder)
          self.assertNotIsInstance(load.builder(name), old_colab_class)
  
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 10 for calling the RegisteredTest obj's underlying member method code with example usage: obj.test_notebook_overwrite_dataset() without return types