code: def test_read_evoked(cur_system, version, use_info):
      """Test comparing reading an Evoked object and the FieldTrip version."""
      test_data_folder_ft = get_data_paths(cur_system)
      mne_avg = get_evoked(cur_system)
      if use_info:
          info = get_raw_info(cur_system)
          ctx = nullcontext()
      else:
          info = None
          ctx = pytest.warns(**no_info_warning)
  
      cur_fname = test_data_folder_ft / f"averaged_{version}.mat"
      with ctx:
          avg_ft = mne.io.read_evoked_fieldtrip(cur_fname, info)
  
      mne_data = mne_avg.data[:, :-1]
      ft_data = avg_ft.data
  
      check_data(mne_data, ft_data, cur_system)
      check_info_fields(mne_avg, avg_ft, use_info)
  
imports: import copy
  import itertools
  from contextlib import nullcontext
  import numpy
  import pytest
  import mne
  from mne.datasets import testing
  from mne.io import read_raw_fieldtrip
  from mne.io.fieldtrip.tests.helpers import assert_warning_in_record, check_data, check_info_fields, get_data_paths, get_epochs, get_evoked, get_raw_data, get_raw_info, pandas_not_found_warning_msg
  from mne.io.fieldtrip.utils import NOINFO_WARNING, _create_events
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.utils import _check_pandas_installed, _record_warnings
label_desc: Use image node_id 1 for calling a global function with example usage: test_read_evoked(cur_system, version, use_info) without return types