code: def test_array_record_file_format_delegates_to_array_record_data_source():
      dataset_info = create_dataset_info()
      with mock.patch.object(
          array_record_data_source, "ArrayRecordDataSource"
      ) as array_record_data_source_mock:
          array_record.ArrayRecordDataSource(
              dataset_info, split="train"
          )
          array_record_data_source_mock.assert_called_once_with(
              _FILE_INSTRUCTIONS
          )
  
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 4 for calling a global function with example usage: test_array_record_file_format_delegates_to_array_record_data_source() without return types