code: def code_builder(
      request, tmp_path_factory
  ) -> dataset_builder.DatasetBuilder:
      """Parametrized fixture to test both config and non-config dataset."""
      tmp_path = tmp_path_factory.mktemp(
          "tfds_datasets"
      )  # Temporary data_dir
      builder_cls = request.param
      # Generate the dataset (only once for all tests as scope == 'module').
      builder = builder_cls(data_dir=tmp_path)
      builder.download_and_prepare()
  
      # Update the default DATA_DIR during the test.
      with mock.patch.object(constants, "DATA_DIR", str(tmp_path)):
          yield builder
  
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 1 for calling a global function with example usage: code_builder(request, tmp_path_factory) without return types