code: def test_data_source_raises_error_for_other_file_formats(file_format):
      with pytest.raises(
          NotImplementedError, match="No random access data source"
      ):
          with mock.patch.object(load, "builder", autospec=True):
              load.data_source(
                  "mydataset",
                  builder_kwargs={"file_format": file_format},
              )
  
imports: import logging
  from unittest import mock
  import pytest
  import tensorflow
  from tensorflow_datasets import testing
  from tensorflow_datasets.core import file_adapters
  from tensorflow_datasets.core import load
  from tensorflow_datasets.core import naming
  from tensorflow_datasets.core import read_only_builder
  from tensorflow_datasets.core import registered
  from tensorflow_datasets.core import visibility
label_desc: Use image node_id 12 for calling a global function with example usage: test_data_source_raises_error_for_other_file_formats(file_format) without return types