code: def _read_events(fid, info):
      """Read events."""
      events = np.zeros(
          [info["n_events"], info["n_segments"] * info["n_samples"]]
      )
      fid.seek(36 + info["n_events"] * 4, 0)  # skip header
      for si in range(info["n_samples"]):
          # skip data channels
          fid.seek(info["n_channels"] * info["dtype"].itemsize, 1)
          # read event channels
          events[:, si] = np.fromfile(
              fid, info["dtype"], info["n_events"]
          )
      return events
  
file_path: mne-python/mne/io/egi/egi.py
imports: import datetime
  import time
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.utils import _create_chs, _read_segments_file
  from ...utils import _check_fname, _validate_type, logger, verbose, warn
  from ..base import BaseRaw
  from .egimff import _read_raw_egi_mff
  from .events import _combine_triggers
label_desc: Use image node_id 2 for calling a global function with example usage: _read_events(fid, info) and returns: events