code: def test_read_raw_fieldtrip(cur_system, version, use_info):
      """Test comparing reading a raw fiff file and the FieldTrip version."""
      # Load the raw fiff file with mne
      test_data_folder_ft = get_data_paths(cur_system)
      raw_fiff_mne = get_raw_data(cur_system, drop_extra_chs=True)
      if use_info:
          info = get_raw_info(cur_system)
          if cur_system in ("BTI", "eximia"):
              ctx = pytest.warns(
                  RuntimeWarning, match="cannot be found in"
              )
          else:
              ctx = nullcontext()
      else:
          info = None
          ctx = pytest.warns(**no_info_warning)
  
      cur_fname = test_data_folder_ft / f"raw_{version}.mat"
  
      with ctx:
          raw_fiff_ft = mne.io.read_raw_fieldtrip(cur_fname, info)
  
      if cur_system == "BTI" and not use_info:
          raw_fiff_ft.drop_channels(
              ["MzA", "MxA", "MyaA", "MyA", "MxaA", "MzaA"]
          )
  
      if cur_system == "eximia" and not use_info:
          raw_fiff_ft.drop_channels(["TRIG2", "TRIG1", "GATE"])
  
      # Check that the data was loaded correctly
      check_data(
          raw_fiff_mne.get_data(), raw_fiff_ft.get_data(), cur_system
      )
  
      # standard tests
      with _record_warnings():
          _test_raw_reader(
              read_raw_fieldtrip,
              fname=cur_fname,
              info=info,
              test_preloading=False,
              test_kwargs=False,
          )  # TODO: This should probably work
  
      # Check info field
      check_info_fields(raw_fiff_mne, raw_fiff_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 3 for calling a global function with example usage: test_read_raw_fieldtrip(cur_system, version, use_info) without return types