code: def write_dig_points(fid, dig, block=False, coord_frame=None):
      """Write a set of digitizer data points into a fif file."""
      if dig is not None:
          data_size = 5 * 4
          if block:
              start_block(fid, FIFF.FIFFB_ISOTRAK)
          if coord_frame is not None:
              write_int(fid, FIFF.FIFF_MNE_COORD_FRAME, coord_frame)
          for d in dig:
              fid.write(np.array(FIFF.FIFF_DIG_POINT, ">i4").tobytes())
              fid.write(
                  np.array(FIFF.FIFFT_DIG_POINT_STRUCT, ">i4").tobytes()
              )
              fid.write(np.array(data_size, dtype=">i4").tobytes())
              fid.write(np.array(FIFF.FIFFV_NEXT_SEQ, ">i4").tobytes())
              #   Start writing fiffDigPointRec
              fid.write(np.array(d["kind"], ">i4").tobytes())
              fid.write(np.array(d["ident"], ">i4").tobytes())
              fid.write(np.array(d["r"][:3], ">f4").tobytes())
          if block:
              end_block(fid, FIFF.FIFFB_ISOTRAK)
  
imports: import os.path
  import re
  import time
  import uuid
  from contextlib import contextmanager
  from gzip import GzipFile
  import numpy
  from scipy.sparse import csc_matrix, csr_matrix
  from ..utils import _file_like, _validate_type, logger
  from ..utils.numerics import _cal_to_julian
  from .constants import FIFF
label_desc: Use image node_id 32 for calling a global function with example usage: write_dig_points(fid, dig, block, coord_frame) without return types