code: def read_raw_nirx(
      fname, saturated="annotate", preload=False, verbose=None
  ) -> "RawNIRX":
      """Reader for a NIRX fNIRS recording.
  
      Parameters
      ----------
      fname : path-like
          Path to the NIRX data folder or header file.
      %(saturated)s
      %(preload)s
      %(verbose)s
  
      Returns
      -------
      raw : instance of RawNIRX
          A Raw object containing NIRX data.
          See :class:`mne.io.Raw` for documentation of attributes and methods.
  
      See Also
      --------
      mne.io.Raw : Documentation of attributes and methods of RawNIRX.
  
      Notes
      -----
      %(nirx_notes)s
      """
      return RawNIRX(fname, saturated, preload, verbose)
  
imports: import datetime
  import glob
  import json
  import os.path
  import re
  from configparser import ConfigParser, RawConfigParser
  import numpy
  from scipy.io import loadmat
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _format_dig_points, create_info
  from ..._fiff.utils import _mult_cal_one
  from ..._freesurfer import get_mni_fiducials
  from ...annotations import Annotations
  from ...transforms import _get_trans, apply_trans
  from ...utils import _check_fname, _check_option, _mask_to_onsets_offsets, _validate_type, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
  from ._localized_abbr import _localized_abbr
label_desc: Use image node_id 1 for calling a global function with example usage: read_raw_nirx(fname, saturated, preload, verbose) and returns: RawNIRX