code: def builder_from_files(
      name: str,
      **builder_kwargs: Any,
  ) -> dataset_builder.DatasetBuilder:
      """Loads a `tfds.core.DatasetBuilder` from files, auto-infering location.
  
      This function is similar to `tfds.builder` (same signature), but creates
      the `tfds.core.DatasetBuilder` directly from files, without loading
      original generation source code.
  
      It does not support:
  
       * namespaces (e.g. 'kaggle:dataset')
       * config objects (`dataset/config` valid, but not `config=MyConfig()`)
       * `version='experimental_latest'`
  
      Args:
        name: Dataset name.
        **builder_kwargs: `tfds.core.DatasetBuilder` kwargs.
  
      Returns:
        builder: The loaded dataset builder.
  
      Raises:
        DatasetNotFoundError: If the dataset cannot be loaded.
      """
      # Find and load dataset builder.
      builder_dir = _find_builder_dir(name, **builder_kwargs)
      if builder_dir is None:
          data_dirs = file_utils.list_data_dirs(
              given_data_dir=builder_kwargs.get("data_dir")
          )
          raise registered.DatasetNotFoundError(
              f"Could not find dataset files for: {name}. Make sure you have the"
              " correct permissions to access the dataset "
              f"and that it has been generated in: {data_dirs}. If the dataset has"
              " configs, you might have to specify the config name."
          )
      return builder_from_directory(builder_dir)
  
imports: import functools
  import os
  import typing
  from typing import Any, List, Optional, Tuple, Type
  from etils import epath
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import logging
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.features import feature
  from tensorflow_datasets.core.proto import dataset_info_pb2
  from tensorflow_datasets.core.utils import error_utils
  from tensorflow_datasets.core.utils import file_utils
  from tensorflow_datasets.core.utils import version
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
label_desc: Use image node_id 4 for calling a global function with example usage: builder_from_files(name) and returns: builder_from_directory