code: def _load_all_configs(
      name: str,
      builder: tfds.core.DatasetBuilder,
  ) -> List[tfds.core.DatasetBuilder]:
      """Load all builder configs."""
      # `data_dir/name/config/version/` -> `data_dir/name/`
      common_dir = builder.data_path.parent.parent
      filtered_dirs = {builder.builder_config.name, ".config"}
  
      def get_config_builder(path):
          if path.name in filtered_dirs:
              return None  # Default config is already loaded
          try:
              builder_conf = tfds.builder(f"{name}/{path.name}")
          except tfds.core.DatasetNotFoundError:
              return None
          if not builder_conf.builder_config:
              # Unexpected sub-config with wrong metadata.
              # This can happen if the user manually messed up with the directories.
              return None
          return builder_conf
  
      with futures.ThreadPoolExecutor(
          max_workers=_WORKER_COUNT_CONFIGS
      ) as tpool:
          config_names = sorted(common_dir.iterdir())
          config_builders = [
              config_builder
              for config_builder in tpool.map(
                  get_config_builder, config_names
              )
              if config_builder is not None  # Filter invalid configs
          ]
  
      return [builder] + config_builders
  
imports: from concurrent import futures
  import dataclasses
  import functools
  from typing import Any, Iterator, List, Optional, Set, Type
  from absl import logging
  import tensorflow_datasets
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.scripts.documentation import collection_markdown_builder
  from tensorflow_datasets.scripts.documentation import dataset_markdown_builder
  from tensorflow_datasets.scripts.documentation import doc_utils
  import tqdm
label_desc: Use image node_id 5 for calling a global function with example usage: _load_all_configs(name, builder) and returns: unknown, builder_conf, None, None, None