code: def test_onset_strength_multi(melspec_sr, lag, channels):
      S, sr = melspec_sr
      # We only test with max_size=1 here to make the sub-band slicing test simple
      odf_multi = librosa.onset.onset_strength_multi(
          S=S, lag=lag, max_size=1, channels=channels
      )
  
      assert len(odf_multi) == len(channels) - 1
  
      for i, (s, t) in enumerate(zip(channels, channels[1:])):
          odf_single = librosa.onset.onset_strength(
              S=S[s:t], lag=lag, max_size=1
          )
          assert np.allclose(odf_single, odf_multi[i])
  
imports: import pytest
  from contextlib import nullcontext
  import os
  import warnings
  import numpy
  import librosa
  from test_core import srand
label_desc: Use image node_id 10 for calling a global function with example usage: test_onset_strength_multi(melspec_sr, lag, channels) without return types