code: def _read_dig_point_struct(fid, tag, shape, rlims):
      """Read dig point struct tag."""
      kind = int(np.frombuffer(fid.read(4), dtype=">i4").item())
      kind = _dig_kind_named.get(kind, kind)
      ident = int(np.frombuffer(fid.read(4), dtype=">i4").item())
      if kind == FIFF.FIFFV_POINT_CARDINAL:
          ident = _dig_cardinal_named.get(ident, ident)
      return dict(
          kind=kind,
          ident=ident,
          r=np.frombuffer(fid.read(12), dtype=">f4"),
          coord_frame=FIFF.FIFFV_COORD_UNKNOWN,
      )
  
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 12 for calling a global function with example usage: _read_dig_point_struct(fid, tag, shape, rlims) and returns: dict