code: def test_locale_encoding(tmp_path):
      """Test NIRx encoding."""
      fname = tmp_path / "latin"
      shutil.copytree(fname_nirx_15_2, fname)
      hdr_fname = fname / "NIRS-2019-10-02_003.hdr"
      hdr = list()
      with open(hdr_fname, "rb") as fid:
          hdr.extend(line for line in fid)
      # French
      hdr[2] = b'Date="jeu. 13 f\xe9vr. 2020"\r\n'
      with open(hdr_fname, "wb") as fid:
          for line in hdr:
              fid.write(line)
      read_raw_nirx(fname, verbose="debug")
      # German
      hdr[2] = b'Date="mi 13 dez 2020"\r\n'
      with open(hdr_fname, "wb") as fid:
          for line in hdr:
              fid.write(line)
      read_raw_nirx(fname, verbose="debug")
      # Italian
      hdr[2] = b'Date="ven 24 gen 2020"\r\n'
      hdr[3] = b'Time="10:57:41.454"\r\n'
      with open(hdr_fname, "wb") as fid:
          for line in hdr:
              fid.write(line)
      raw = read_raw_nirx(fname, verbose="debug")
      want_dt = dt.datetime(
          2020, 1, 24, 10, 57, 41, 454000, tzinfo=dt.timezone.utc
      )
      assert raw.info["meas_date"] == want_dt
  
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 12 for calling a global function with example usage: test_locale_encoding(tmp_path) without return types