class_docstr: Mocked Generator builder.
class_docstr_tok: ["Mocked","Generator","builder","."]
code: def __init_subclass__(cls, **kwargs):
      # In HF, default config is explicitly defined
      if cls.DEFAULT_CONFIG_NAME:
          if not cls.BUILDER_CONFIGS:
              # If no config is defined, HF implicitly create a
              # default config (e.g. `clickbait_news_bg`)
              cls.BUILDER_CONFIGS = [
                  cls.BUILDER_CONFIG_CLASS(name=cls.DEFAULT_CONFIG_NAME)
              ]
          else:
              # Should re-order config so that the first config
              # is the default one
              name_to_configs = {c.name: c for c in cls.BUILDER_CONFIGS}
              new_ordered_configs = [
                  name_to_configs[cls.DEFAULT_CONFIG_NAME]
              ]
              new_ordered_configs.extend(
                  config
                  for name, config in name_to_configs.items()
                  if name != cls.DEFAULT_CONFIG_NAME
              )
              cls.BUILDER_CONFIGS = new_ordered_configs
      super().__init_subclass__(**kwargs)
  
imports: from __future__ import annotations
  import builtins
  import contextlib
  import functools
  import glob
  import os
  import sys
  import types
  from typing import Iterator, NamedTuple, Optional, Union
  from unittest import mock
  from etils import epath
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import download
  from tensorflow_datasets.core import features
  from tensorflow_datasets.core import logging
  from tensorflow_datasets.core import split_builder
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 1 for calling the GeneratorBasedBuilder obj's underlying member method code with example usage: obj.__init_subclass__(cls) without return types