code: def _assert_ppod(raw, p_pod_file):
      have_types = raw.get_channel_types(unique=True)
      assert "fnirs_fd_phase" in raw, have_types
      assert "fnirs_cw_amplitude" in raw, have_types
      assert "fnirs_fd_ac_amplitude" in raw, have_types
      ppod_data = spio.loadmat(p_pod_file)
  
      # Compare MNE loaded data to p_pod loaded data.
      map_ = dict(
          dc="fnirs_cw_amplitude",
          ac="fnirs_fd_ac_amplitude",
          ph="fnirs_fd_phase",
      )
      for key, value in map_.items():
          ppod = ppod_data[key].T
          m = np.median(np.abs(ppod))
          assert 1e-1 < m < 1e5, key  # our atol is meaningful
          atol = m * 1e-10
          py = raw.get_data(value)
          if key == "ph":  # radians
              assert_array_less(-np.pi, py)
              assert_array_less(py, 3 * np.pi)
              py = np.rad2deg(py)
          assert_allclose(py, ppod, atol=atol, err_msg=key)
  
file_path: mne-python/mne/io/boxy/tests/test_boxy.py
imports: import numpy
  import pytest
  import scipy.io
  from numpy.testing import assert_allclose, assert_array_equal, assert_array_less
  from mne import pick_types
  from mne.datasets import testing
  from mne.io import read_raw_boxy
  from mne.io.tests.test_raw import _test_raw_reader
label_desc: Use image node_id 1 for calling a global function with example usage: _assert_ppod(raw, p_pod_file) without return types