code: def test_nirx_15_2():
      """Test reading NIRX files."""
      raw = read_raw_nirx(fname_nirx_15_2, preload=True)
  
      # Test data import
      assert raw._data.shape == (64, 67)
      assert raw.info["sfreq"] == 3.90625
      assert raw.info["meas_date"] == dt.datetime(
          2019, 10, 2, 9, 8, 47, 511000, tzinfo=dt.timezone.utc
      )
  
      # Test channel naming
      assert raw.info["ch_names"][:4] == [
          "S1_D1 760",
          "S1_D1 850",
          "S1_D10 760",
          "S1_D10 850",
      ]
  
      # Test info import
      assert raw.info["subject_info"] == dict(
          sex=1,
          first_name="TestRecording",
          birthday=(1989, 10, 2),
          his_id="TestRecording",
      )
  
      # Test trigger events
      assert_array_equal(
          raw.annotations.description, ["4.0", "6.0", "2.0"]
      )
      print(raw.annotations.onset)
  
      # Test location of detectors
      allowed_dist_error = 0.0002
      locs = [ch["loc"][6:9] for ch in raw.info["chs"]]
      head_mri_t, _ = _get_trans("fsaverage", "head", "mri")
      mni_locs = apply_trans(head_mri_t, locs)
  
      assert raw.info["ch_names"][0][3:5] == "D1"
      assert_allclose(
          mni_locs[0],
          [-0.0292, 0.0852, -0.0142],
          atol=allowed_dist_error,
      )
  
      assert raw.info["ch_names"][15][3:5] == "D4"
      assert_allclose(
          mni_locs[15],
          [-0.0739, -0.0756, -0.0075],
          atol=allowed_dist_error,
      )
  
      # Old name aliases for backward compat
      assert "fnirs_cw_amplitude" in raw
      with pytest.raises(ValueError, match="Invalid value"):
          "fnirs_raw" in raw
      assert "fnirs_od" not in raw
      picks = pick_types(raw.info, fnirs="fnirs_cw_amplitude")
      assert len(picks) > 0
  
imports: import datetime
  import os
  import shutil
  import numpy
  import pytest
  from numpy.testing import assert_allclose, assert_array_equal
  from mne import pick_types
  from mne._fiff.constants import FIFF
  from mne.datasets.testing import data_path, requires_testing_data
  from mne.io import read_raw_nirx
  from mne.io.tests.test_raw import _test_raw_reader
  from mne.preprocessing import annotate_nan
  from mne.preprocessing.nirs import _reorder_nirx, short_channels, source_detector_distances
  from mne.transforms import _get_trans, apply_trans
label_desc: Use image node_id 13 for calling a global function with example usage: test_nirx_15_2() without return types