code: def test_ricoh_data(tmp_path, fname, desc):
      """Test reading channel names and dig information from Ricoh systems."""
      raw = read_raw_kit(fname, standardize_names=True)
      assert raw.ch_names[0] == "MEG 001"
      raw = read_raw_kit(
          fname, standardize_names=False, verbose="debug"
      )
      assert raw.info["description"] == desc
      assert_allclose(raw.times[-1], 5.0 - 1.0 / raw.info["sfreq"])
      assert raw.ch_names[0] == "LF31"
      eeg_picks = pick_types(raw.info, meg=False, eeg=True)
      assert len(eeg_picks) == 45
      assert (
          len(raw.info["dig"]) == 8 + len(eeg_picks) - 2
      )  # EKG+ and E no pos
      bad_dig = [
          ch["ch_name"]
          for ci, ch in enumerate(raw.info["chs"])
          if ci in eeg_picks and (ch["loc"][:3] == 0).all()
      ]
      assert bad_dig == ["EKG+", "E"]
      assert not any(np.allclose(d["r"], 0.0) for d in raw.info["dig"])
      assert_allclose(
          raw.info["dev_head_t"]["trans"],
          [
              [0.998311, -0.056923, 0.01164, 0.001403],
              [0.054469, 0.986653, 0.153458, 0.0044],
              [-0.02022, -0.152564, 0.988087, 0.018634],
              [0.0, 0.0, 0.0, 1.0],
          ],
          atol=1e-5,
      )
      data = raw.get_data()
      # 1 pT 10 Hz on the first channel
      assert raw.info["chs"][0]["coil_type"] == FIFF.FIFFV_COIL_KIT_GRAD
      _assert_sinusoid(data[0], raw.times, 10, 1e-12, "1 pT 10 Hz MEG")
      assert_allclose(data[1:160], 0.0, atol=1e-13)
      # 1 V 5 Hz analog
      assert raw.info["chs"][186]["coil_type"] == FIFF.FIFFV_COIL_EEG
      _assert_sinusoid(data[160], raw.times, 5, 1, "1 V 5 Hz analog")
      assert_allclose(data[161:185], 0.0, atol=1e-20)
      # 50 uV 8 Hz plus 1.6 mV offset
      assert raw.info["chs"][186]["coil_type"] == FIFF.FIFFV_COIL_EEG
      eeg_data = data[186]
      assert_allclose(eeg_data.mean(), 1.6e-3, atol=1e-5)  # offset
      eeg_data = eeg_data - eeg_data.mean()
      _assert_sinusoid(eeg_data, raw.times, 8, 50e-6, "50 uV 8 Hz EEG")
      assert_allclose(data[187:-1], 0.0, atol=1e-20)
      assert_allclose(data[-1], 254.5, atol=0.51)
  
imports: from pathlib import Path
  import numpy
  import pytest
  import scipy.io
  from numpy.testing import assert_allclose, assert_array_almost_equal, assert_array_equal, assert_equal
  from scipy import linalg
  import mne
  from mne import Epochs, find_events, pick_types, read_events
  from mne._fiff.constants import FIFF
  from mne.datasets.testing import requires_testing_data
  from mne.io import read_epochs_kit, read_raw_fif, read_raw_kit
  from mne.io.kit.constants import KIT
  from mne.io.kit.coreg import read_sns
  from mne.io.kit.kit import get_kit_info
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.surface import _get_ico_surface
  from mne.transforms import apply_trans
  from mne.utils import assert_dig_allclose
label_desc: Use image node_id 4 for calling a global function with example usage: test_ricoh_data(tmp_path, fname, desc) without return types