code: def test_builder_from_metadata(
      code_builder: dataset_builder.DatasetBuilder,
      dummy_features: features_dict.FeaturesDict,
      dummy_info_proto: dataset_info_pb2.DatasetInfo,
  ):
      builder = read_only_builder.builder_from_metadata(
          code_builder.data_dir, info_proto=dummy_info_proto
      )
      assert builder.name == dummy_info_proto.name
      assert builder.info.description == dummy_info_proto.description
      assert builder.info.citation == dummy_info_proto.citation
      assert builder.info.version == dummy_info_proto.version
      assert builder.builder_config
      assert builder.builder_config.name == dummy_info_proto.config_name
      assert builder.builder_config.version == dummy_info_proto.version
      assert (
          builder.builder_config.description
          == dummy_info_proto.config_description
      )
      assert (
          builder.builder_config.release_notes
          == dummy_info_proto.release_notes
      )
      assert str(builder.info.features) == str(dummy_features)
  
imports: import contextlib
  import functools
  import os
  import pathlib
  import re
  from typing import Sequence
  from unittest import mock
  import dill
  from etils import epath
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import constants
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import dataset_utils
  from tensorflow_datasets.core import load
  from tensorflow_datasets.core import proto
  from tensorflow_datasets.core import read_only_builder
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core import utils
  from tensorflow_datasets.core.features import features_dict
  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 google.protobuf import json_format
label_desc: Use image node_id 8 for calling a global function with example usage: test_builder_from_metadata(code_builder, dummy_features, dummy_info_proto) without return types