code: def __sliding_window_fast(
      array: np.ndarray, window_size: int, mode: str = "attack"
  ) -> np.ndarray:
      if mode == "attack":
          window_size = make_odd(window_size)
          return maximum_filter1d(array, size=(2 * window_size - 1))
      half_window_size = (window_size - 1) // 2
      array = np.pad(array, (half_window_size, 0))
      return maximum_filter1d(array, size=window_size)[
          :-half_window_size
      ]
  
file_path: matchering/matchering/limiter/hyrax.py
imports: import numpy
  import math
  from scipy import signal
  from scipy.ndimage.filters import maximum_filter1d
  from ..None import Config
  from ..log import debug
  from ..dsp import rectify, flip, max_mix
  from ..utils import make_odd, ms_to_samples
label_desc: Use image node_id 1 for calling a global function with example usage: __sliding_window_fast(array, window_size, mode) and returns: maximum_filter1d, maximum_filter1d