code: def create_dataset_info():
      with mock.patch.object(splits_lib, "SplitInfo") as split_mock:
          split_mock.return_value.name = "train"
          split_mock.return_value.file_instructions = _FILE_INSTRUCTIONS
          dataset_info = mock.create_autospec(
              dataset_info_lib.DatasetInfo
          )
          dataset_info.file_format = (
              file_adapters.FileFormat.ARRAY_RECORD
          )
          dataset_info.splits = {"train": split_mock()}
          dataset_info.name = "dataset_name"
          return dataset_info
  
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 1 for calling a global function with example usage: create_dataset_info() and returns: dataset_info