code: def _make_gap_annots(raw_extras, key="recording_blocks"):
      """Create Annotations for gap periods between recording blocks."""
      df = raw_extras["dfs"][key]
      onsets = df["end_time"].iloc[:-1]
      diffs = df["time"].shift(-1) - df["end_time"]
      durations = diffs.iloc[:-1]
      descriptions = ["BAD_ACQ_SKIP"] * len(onsets)
      return Annotations(
          onset=onsets, duration=durations, description=descriptions
      )
  
imports: import re
  from datetime import datetime, timedelta, timezone
  import numpy
  from ..._fiff.constants import FIFF
  from ..._fiff.meas_info import create_info
  from ...annotations import Annotations
  from ...utils import _check_pandas_installed, logger, warn
label_desc: Use image node_id 22 for calling a global function with example usage: _make_gap_annots(raw_extras, key) and returns: Annotations