code: def _read_old_pack(fid, tag, shape, rlims):
      """Read old pack tag."""
      offset = float(np.frombuffer(fid.read(4), dtype=">f4").item())
      scale = float(np.frombuffer(fid.read(4), dtype=">f4").item())
      data = np.frombuffer(fid.read(tag.size - 8), dtype=">i2")
      data = data * scale  # to float64
      data += offset
      return data
  
imports: import html
  import re
  import struct
  from dataclasses import dataclass
  from functools import partial
  from typing import Any
  import numpy
  from scipy.sparse import csc_matrix, csr_matrix
  from ..utils import _check_option, warn
  from ..utils.numerics import _julian_to_cal
  from .constants import FIFF, _ch_coil_type_named, _ch_kind_named, _ch_unit_mul_named, _ch_unit_named, _dig_cardinal_named, _dig_kind_named
label_desc: Use image node_id 16 for calling a global function with example usage: _read_old_pack(fid, tag, shape, rlims) and returns: data