code: def test_snirf_kernel_hb():
      """Test reading Kernel SNIRF files with haemoglobin data."""
      raw = read_raw_snirf(kernel_hb, preload=True)
  
      # Test data import
      assert raw._data.shape == (180 * 2, 14)
      assert raw.copy().pick("hbo")._data.shape == (180, 14)
      assert raw.copy().pick("hbr")._data.shape == (180, 14)
  
      assert_allclose(raw.info["sfreq"], 8.257638)
  
      bad_nans = np.isnan(raw.get_data()).any(axis=1)
      assert np.sum(bad_nans) == 20
  
      assert len(raw.annotations.description) == 2
      assert raw.annotations.onset[0] == 0.036939
      assert raw.annotations.onset[1] == 0.874633
      assert raw.annotations.description[0] == "StartTrial"
      assert raw.annotations.description[1] == "StartIti"
  
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 11 for calling a global function with example usage: test_snirf_kernel_hb() without return types