code: def _check_entry(first, nent):
      """Sanity check entries."""
      if first >= nent:
          raise OSError(
              "Could not read data, perhaps this is a corrupt file"
          )
  
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 1 for calling a global function with example usage: _check_entry(first, nent) without return types