code: def _read_dir(fid):
      return dict(
          offset=np.fromfile(fid, UINT32, 1)[0],
          size=np.fromfile(fid, INT32, 1)[0],
          max_count=np.fromfile(fid, INT32, 1)[0],
          count=np.fromfile(fid, INT32, 1)[0],
      )
  
imports: from collections import OrderedDict, defaultdict
  from math import cos, sin
  from os import SEEK_CUR, PathLike
  from os import path
  from pathlib import Path
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import _empty_info
  from ..._fiff.pick import pick_types
  from ..._fiff.utils import _mult_cal_one
  from ...epochs import BaseEpochs
  from ...event import read_events
  from ...transforms import als_ras_trans, apply_trans
  from ...utils import _check_fname, _check_option, _stamp_to_dt, fill_doc, logger, verbose, warn
  from ..base import BaseRaw
  from .constants import KIT, LEGACY_AMP_PARAMS
  from .coreg import _set_dig_kit, read_mrk
label_desc: Use image node_id 5 for calling a global function with example usage: _read_dir(fid) and returns: dict