code: def _load_builder_from_location(
      name: str,
      dataset_name: tfds.core.naming.DatasetName,
  ) -> Optional[BuilderToDocument]:
      """Load the builder, config,... to document."""
      logging.info("Loading builder %s from location", dataset_name)
      try:
          builder = tfds.builder(name)
          logging.debug("Loaded builder from location: %s", builder)
      except tfds.core.DatasetNotFoundError as e:
          logging.info(
              "Dataset %s not found, will now try to load from sub-folder",
              dataset_name,
              exc_info=e,
          )
          # If tfds.core.DatasetNotFoundError, it might be the default
          # config isn't found. Should try to load a sub-folder (to check).
          builder = _maybe_load_config(name)
          if not builder:
              logging.error(
                  "Dataset %s not found", dataset_name, exc_info=e
              )
              return None
      except (OSError, tf.errors.PermissionDeniedError) as e:
          logging.error(
              "Permission denied for %s", dataset_name, exc_info=e
          )
          tqdm.tqdm.write(
              f"Warning: Skip dataset {name} due to permission error"
          )
          return None
      except Exception as e:  # pylint: disable=broad-except
          logging.error(
              "CorruptedDatasetError: %s", repr(name), exc_info=e
          )
          return None
      if builder.builder_config:
          config_builders = _load_all_configs(name, builder)
      else:
          config_builders = []
      return BuilderToDocument(
          sections={dataset_name.namespace},
          namespace=dataset_name.namespace,
          builder=builder,
          config_builders=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 3 for calling a global function with example usage: _load_builder_from_location(name, dataset_name) and returns: BuilderToDocument, None, None, None