code: def read_raw_fif(
      fname,
      allow_maxshield=False,
      preload=False,
      on_split_missing="raise",
      verbose=None,
  ) -> Raw:
      """Reader function for Raw FIF data.
  
      Parameters
      ----------
      fname : path-like | file-like
          The raw filename to load. For files that have automatically been split,
          the split part will be automatically loaded. Filenames should end
          with raw.fif, raw.fif.gz, raw_sss.fif, raw_sss.fif.gz, raw_tsss.fif,
          raw_tsss.fif.gz, or _meg.fif. If a file-like object is provided,
          preloading must be used.
  
          .. versionchanged:: 0.18
             Support for file-like objects.
      allow_maxshield : bool | str (default False)
          If True, allow loading of data that has been recorded with internal
          active compensation (MaxShield). Data recorded with MaxShield should
          generally not be loaded directly, but should first be processed using
          SSS/tSSS to remove the compensation signals that may also affect brain
          activity. Can also be "yes" to load without eliciting a warning.
      %(preload)s
      %(on_split_missing)s
      %(verbose)s
  
      Returns
      -------
      raw : instance of Raw
          A Raw object containing FIF data.
  
      Notes
      -----
      .. versionadded:: 0.9.0
  
      When reading a FIF file, note that the first N seconds annotated
      ``BAD_ACQ_SKIP`` are **skipped**. They are removed from ``raw.times`` and
      ``raw.n_times`` parameters but ``raw.first_samp`` and ``raw.first_time``
      are updated accordingly.
      """
      return Raw(
          fname=fname,
          allow_maxshield=allow_maxshield,
          preload=preload,
          verbose=verbose,
          on_split_missing=on_split_missing,
      )
  
imports: import copy
  import os
  import os.path
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import read_meas_info
  from ..._fiff.open import _fiff_get_fid, _get_next_fname, fiff_open
  from ..._fiff.tag import _call_dict, read_tag
  from ..._fiff.tree import dir_tree_find
  from ..._fiff.utils import _mult_cal_one
  from ...annotations import Annotations, _read_annotations_fif
  from ...channels import fix_mag_coil_types
  from ...event import AcqParserFIF
  from ...utils import _check_fname, _file_like, _on_missing, check_fname, fill_doc, logger, verbose, warn
  from ..base import BaseRaw, _check_maxshield, _check_raw_compatibility, _get_fname_rep, _RawShell
label_desc: Use image node_id 2 for calling a global function with example usage: read_raw_fif(fname, allow_maxshield, preload, on_split_missing, verbose) and returns: Raw