code: def _get_window(start, end):
      """Return window which has length as much as parameter start - end."""
      window = (
          1
          - np.r_[
              hann(4)[:2],
              np.ones(np.abs(end - start) - 4),
              hann(4)[-2:],
          ].T
      )
      return window
  
file_path: mne-python/mne/preprocessing/stim.py
imports: import numpy
  from scipy.interpolate import interp1d
  from scipy.signal.windows import hann
  from .._fiff.pick import _picks_to_idx
  from ..epochs import BaseEpochs
  from ..event import find_events
  from ..evoked import Evoked
  from ..io import BaseRaw
  from ..utils import _check_option, _check_preload, fill_doc
label_desc: Use image node_id 1 for calling a global function with example usage: _get_window(start, end) and returns: window