code: def __beat_local_score(onset_envelope, period):
      """Construct the local score for an onset envlope and given period"""
      window = np.exp(
          -0.5 * (np.arange(-period, period + 1) * 32.0 / period) ** 2
      )
      return scipy.signal.convolve(
          __normalize_onsets(onset_envelope), window, "same"
      )
  
file_path: librosa/librosa/beat.py
imports: import numpy
  import scipy
  import scipy.stats
  from ._cache import cache
  from .None import core
  from .None import onset
  from .None import util
  from .feature import tempogram, fourier_tempogram
  from .feature import tempo
  from .util.exceptions import ParameterError
  from .util.decorators import moved
  from typing import Any, Callable, Optional, Tuple
label_desc: Use image node_id 5 for calling a global function with example usage: __beat_local_score(onset_envelope, period) and returns: scipy