code: def test_snirf_gowerlabs():
      """Test reading SNIRF files."""
      raw = read_raw_snirf(lumo110, preload=True)
  
      assert raw._data.shape == (216, 274)
      assert raw.info["dig"][0]["coord_frame"] == FIFF.FIFFV_COORD_HEAD
      assert len(raw.ch_names) == 216
      assert_allclose(raw.info["sfreq"], 10.0)
      # we don't force them to be sorted according to a naive split
      assert raw.ch_names != sorted(raw.ch_names)
      # ... but this file does have a nice logical ordering already
      print(raw.ch_names)
      assert raw.ch_names == sorted(
          raw.ch_names,
          # use a key which is (src triplet, freq, src, freq, det)
          key=lambda name: (
              (int(name.split()[0].split("_")[0][1:]) - 1) // 3,
              int(name.split()[1]),
              int(name.split()[0].split("_")[0][1:]),
              int(name.split()[0].split("_")[1][1:]),
          ),
      )
  
imports: import shutil
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_almost_equal, assert_equal
  from mne._fiff.constants import FIFF
  from mne.datasets.testing import data_path, requires_testing_data
  from mne.io import read_raw_nirx, read_raw_snirf
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.preprocessing.nirs import _reorder_nirx, beer_lambert_law, optical_density, short_channels, source_detector_distances
  from mne.transforms import _get_trans, apply_trans
  from mne.utils import catch_logging
label_desc: Use image node_id 3 for calling a global function with example usage: test_snirf_gowerlabs() without return types