code: def _make_dataset(
      tmp_path_factory: pytest.TempPathFactory,
      builder_cls: Type[dataset_builder.DatasetBuilder],
  ) -> dataset_builder.DatasetBuilder:
      tmp_path = tmp_path_factory.mktemp(
          f"global_{builder_cls.__name__}"
      )
      builder = builder_cls(data_dir=tmp_path)
      builder.download_and_prepare()
      return builder
  
file_path: datasets/tensorflow_datasets/conftest.py
imports: from __future__ import annotations
  import builtins
  import importlib
  import sys
  import typing
  from typing import Iterator, Type
  import pytest
  from tensorflow_datasets import setup_teardown
label_desc: Use image node_id 4 for calling a global function with example usage: _make_dataset(tmp_path_factory, builder_cls) and returns: builder