code: def test_unsupported_file_formats_raise_error(file_format):
      dataset_info = create_dataset_info()
      dataset_info.file_format = file_format
      with pytest.raises(
          NotImplementedError,
          match="No random access data source for file format",
      ):
          array_record.ArrayRecordDataSource(
              dataset_info, split="train"
          )
  
file_path: datasets/tensorflow_datasets/core/data_sources/array_record_test.py
imports: from unittest import mock
  import pytest
  import tensorflow_datasets
  from tensorflow_datasets.core import dataset_info
  from tensorflow_datasets.core import decode
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import splits
  from tensorflow_datasets.core.data_sources import array_record
  from tensorflow_datasets.core.utils import shard_utils
  from tensorflow_datasets.core.utils.lazy_imports_utils import array_record_data_source
label_desc: Use image node_id 2 for calling a global function with example usage: test_unsupported_file_formats_raise_error(file_format) without return types