code: def __normalize_onsets(onsets):
      """Map onset strength function into the range [0, 1]"""
      norm = onsets.std(ddof=1)
      if norm > 0:
          onsets = onsets / norm
      return onsets
  
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 4 for calling a global function with example usage: __normalize_onsets(onsets) and returns: onsets