code: def test_builder_files_exists(
      code_builder: dataset_builder.DatasetBuilder,
  ):
      """Tests that `tfds.builder` is correctly loaded from the code/files."""
      # When code is available, and no version specified, load from code
      builder = load.builder(code_builder.name)
      assert isinstance(
          builder, type(code_builder)
      )  # Check builder is DummyMnist
      assert not isinstance(builder, read_only_builder.ReadOnlyBuilder)
  
      # If the version is specified, load from the files (backward support)
      builder = load.builder(
          f"{code_builder.name}:*.*.*"
      )  # Most recent version
      assert not isinstance(builder, type(code_builder))
      assert isinstance(builder, read_only_builder.ReadOnlyBuilder)
  
      # If the version is specified but files not found, load from the code
      builder = load.builder(
          f"{code_builder.name}:*.*.*",
          data_dir="/tmp/path/tfds/not-exists",
      )
      assert isinstance(builder, type(code_builder))
      assert not isinstance(builder, read_only_builder.ReadOnlyBuilder)
  
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 2 for calling a global function with example usage: test_builder_files_exists(code_builder) without return types