code: def get_lpis_and_match_rms(
      rmses: np.ndarray, average_rms: float
  ) -> (np.ndarray, float):
      loudest_piece_idxs = np.where(rmses >= average_rms)
  
      loudest_rmses = rmses[loudest_piece_idxs]
      match_rms = rms(loudest_rmses)
      debug(
          f"The current average RMS value in the loudest pieces is {to_db(match_rms)}"
      )
  
      return loudest_piece_idxs, match_rms
  
file_path: matchering/matchering/stage_helpers/match_levels.py
imports: import numpy
  from ..log import debug
  from ..None import Config
  from ..utils import to_db
  from ..dsp import lr_to_ms, size, unfold, batch_rms, rms, amplify, normalize
label_desc: Use image node_id 3 for calling a global function with example usage: get_lpis_and_match_rms(rmses, average_rms) and returns: loudest_piece_idxs,  match_rms