code: def test_as_dataset_fails_for_array_record(
      tmp_path: pathlib.Path,
  ):
      builder = testing.DummyDataset(
          data_dir=tmp_path,
          file_format=file_adapters.FileFormat.ARRAY_RECORD,
      )
      builder.download_and_prepare()
      with pytest.raises(
          NotImplementedError,
          match="not implemented for ArrayRecord files",
      ):
          ds = builder.as_dataset(split="train")
  
file_path: datasets/tensorflow_datasets/core/file_adapters_test.py
imports: import pathlib
  from typing import Type
  import pytest
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import dataset_builder
  from tensorflow_datasets.core import file_adapters
label_desc: Use image node_id 5 for calling a global function with example usage: test_as_dataset_fails_for_array_record(tmp_path) without return types