code: def test_birthday(tmp_path, monkeypatch):
      """Test birthday parsing."""
      try:
          snirf = pytest.importorskip("snirf")
      except AttributeError as exc:
          # Until https://github.com/BUNPC/pysnirf2/pull/43 is released
          pytest.skip(f"snirf import error: {exc}")
      fname = tmp_path / "test.snirf"
      with snirf.Snirf(str(fname), "w") as a:
          a.nirs.appendGroup()
          a.nirs[0].data.appendGroup()
          a.nirs[0].data[0].dataTimeSeries = np.zeros((2, 2))
          a.nirs[0].data[0].time = [0, 1]
          for i in range(2):
              a.nirs[0].data[0].measurementList.appendGroup()
              a.nirs[0].data[0].measurementList[i].sourceIndex = 1
              a.nirs[0].data[0].measurementList[i].detectorIndex = 1
              a.nirs[0].data[0].measurementList[i].wavelengthIndex = 1
              a.nirs[0].data[0].measurementList[i].dataType = 99999
              a.nirs[0].data[0].measurementList[i].dataTypeIndex = 0
          a.nirs[0].data[0].measurementList[0].dataTypeLabel = "HbO"
          a.nirs[0].data[0].measurementList[1].dataTypeLabel = "HbR"
          a.nirs[0].metaDataTags.SubjectID = "0"
          a.nirs[0].metaDataTags.MeasurementDate = "2000-01-01"
          a.nirs[0].metaDataTags.MeasurementTime = "00:00:00"
          a.nirs[0].metaDataTags.LengthUnit = "m"
          a.nirs[0].metaDataTags.TimeUnit = "s"
          a.nirs[0].metaDataTags.FrequencyUnit = "Hz"
          a.nirs[0].metaDataTags.add("DateOfBirth", "1950-01-01")
          a.nirs[0].probe.wavelengths = [0, 0]
          a.nirs[0].probe.sourcePos3D = np.zeros((1, 3))
          a.nirs[0].probe.detectorPos3D = np.zeros((1, 3))
          # Until https://github.com/BUNPC/pysnirf2/pull/39 is released
          monkeypatch.setattr(
              a._cfg.logger, "info", lambda *args, **kwargs: None
          )
          a.save()
  
      raw = read_raw_snirf(fname)
      assert raw.info["subject_info"]["birthday"] == (1950, 1, 1)
  
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 15 for calling a global function with example usage: test_birthday(tmp_path, monkeypatch) without return types