code: def add_eog(
      raw,
      head_pos=None,
      interp="cos2",
      n_jobs=None,
      random_state=None,
      verbose=None,
  ):
      """Add blink noise to raw data.
  
      Parameters
      ----------
      raw : instance of Raw
          The raw instance to modify.
      %(head_pos)s
      %(interp)s
      %(n_jobs)s
      %(random_state)s
          The random generator state used for blink, ECG, and sensor noise
          randomization.
      %(verbose)s
  
      Returns
      -------
      raw : instance of Raw
          The instance, modified in place.
  
      See Also
      --------
      add_chpi
      add_ecg
      add_noise
      simulate_raw
  
      Notes
      -----
      The blink artifacts are generated by:
  
      1. Random activation times are drawn from an inhomogeneous poisson
         process whose blink rate oscillates between 4.5 blinks/minute
         and 17 blinks/minute based on the low (reading) and high (resting)
         blink rates from :footcite:`BentivoglioEtAl1997`.
      2. The activation kernel is a 250 ms Hanning window.
      3. Two activated dipoles are located in the z=0 plane (in head
         coordinates) at ±30 degrees away from the y axis (nasion).
      4. Activations affect MEG and EEG channels.
  
      The scale-factor of the activation function was chosen based on
      visual inspection to yield amplitudes generally consistent with those
      seen in experimental data. Noisy versions of the activation will be
      stored in the first EOG channel in the raw instance, if it exists.
  
      References
      ----------
      .. footbibliography::
      """
      return _add_exg(
          raw, "blink", head_pos, interp, n_jobs, random_state
      )
  
imports: import os
  from collections.abc import Iterable
  from pathlib import Path
  import numpy
  from .._fiff.constants import FIFF
  from .._fiff.meas_info import Info
  from .._fiff.pick import pick_channels, pick_channels_forward, pick_info, pick_types
  from .._ola import _Interp2
  from ..bem import fit_sphere_to_headshape, make_sphere_model, read_bem_solution
  from ..chpi import _get_hpi_initial_fit, get_chpi_info, head_pos_to_trans_rot_t, read_head_pos
  from ..cov import Covariance, make_ad_hoc_cov, read_cov
  from ..event import _get_stim_channel
  from ..forward import _compute_forwards, _magnetic_dipole_field_vec, _merge_fwds, _prep_meg_channels, _prepare_for_forward, _stc_src_sel, _to_forward_dict, _transform_orig_meg_coils, convert_forward_solution, restrict_forward_to_stc
  from ..io import BaseRaw, RawArray
  from ..source_estimate import _BaseSourceEstimate
  from ..source_space._source_space import _ensure_src, _set_source_space_vertices, setup_volume_source_space
  from ..surface import _CheckInside
  from ..transforms import _get_trans, transform_surface_to
  from ..utils import _check_preload, _pl, _validate_type, check_random_state, logger, verbose
  from .source import SourceSimulator
label_desc: Use image node_id 6 for calling a global function with example usage: add_eog(raw, head_pos, interp, n_jobs, random_state, verbose) and returns: _add_exg