code: def test_nirx_dat_warn(tmp_path):
      """Test reading NIRX files when missing data."""
      shutil.copytree(fname_nirx_15_2_short, str(tmp_path) + "/data/")
      os.rename(
          tmp_path / "data" / "NIRS-2019-08-23_001.dat",
          tmp_path / "data" / "NIRS-2019-08-23_001.tmp",
      )
      fname = tmp_path / "data" / "NIRS-2019-08-23_001.hdr"
      with pytest.warns(RuntimeWarning, match="A single dat"):
          read_raw_nirx(fname, preload=True)
  
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 9 for calling a global function with example usage: test_nirx_dat_warn(tmp_path) without return types