code: def _fiff_get_fid(fname):
      """Open a FIF file with no additional parsing."""
      if _file_like(fname):
          fid = _NoCloseRead(fname)
          fid.seek(0)
      else:
          fname = str(fname)
          if op.splitext(fname)[1].lower() == ".gz":
              logger.debug("Using gzip")
              fid = GzipFile(fname, "rb")  # Open in binary mode
          else:
              logger.debug("Using normal I/O")
              fid = open(fname, "rb")  # Open in binary mode
      return fid
  
imports: import os.path
  from gzip import GzipFile
  from io import SEEK_SET, BytesIO
  import numpy
  from scipy.sparse import issparse
  from ..utils import _file_like, logger, verbose, warn
  from .constants import FIFF
  from .tag import Tag, _call_dict_names, _matrix_info, _read_tag_header, read_tag
  from .tree import dir_tree_find, make_dir_tree
label_desc: Use image node_id 1 for calling a global function with example usage: _fiff_get_fid(fname) and returns: fid