code: def builder_from_metadata(
      builder_dir: epath.PathLike,
      info_proto: dataset_info_pb2.DatasetInfo,
  ) -> dataset_builder.DatasetBuilder:
      """Loads a `tfds.core.DatasetBuilder` from the given metadata.
  
      Reconstructs the `tfds.core.DatasetBuilder` without requiring the original
      generation code. The given `info_proto` overrides whatever dataset info is in
      `builder_dir`.
  
      The dataset structure (feature names, nested dict,...) and content (image,
      sequence, ...) is used from the given DatasetInfo.
  
      Args:
        builder_dir: path of the directory containing the dataset to read (e.g.
          `~/tensorflow_datasets/mnist/3.0.0/`). Dataset info in this folder is
          overridden by the `info_proto`.
        info_proto: DatasetInfo describing the name, config, features, etc of the
          requested dataset.
  
      Returns:
        builder: `tfds.core.DatasetBuilder`, builder for dataset at the given path.
      """
      return ReadOnlyBuilder(
          builder_dir=builder_dir,
          info_proto=info_proto,
      )
  
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 3 for calling a global function with example usage: builder_from_metadata(builder_dir, info_proto) and returns: ReadOnlyBuilder