code: def __average_fft(
      loudest_pieces: np.ndarray, sample_rate: int, fft_size: int
  ) -> np.ndarray:
      *_, specs = signal.stft(
          loudest_pieces,
          sample_rate,
          window="boxcar",
          nperseg=fft_size,
          noverlap=0,
          boundary=None,
          padded=False,
      )
      return np.abs(specs).mean((0, 2))
  
file_path: matchering/matchering/stage_helpers/match_frequencies.py
imports: import numpy
  from time import time
  from scipy import signal, interpolate
  from ..log import debug
  from ..None import Config
  from ..dsp import ms_to_lr, smooth_lowess
label_desc: Use image node_id 1 for calling a global function with example usage: __average_fft(loudest_pieces, sample_rate, fft_size) and returns: np