code: def test_split(y_split_idx, frame_length, hop_length, top_db):
      y, idx_true = y_split_idx
  
      intervals = librosa.effects.split(
          y,
          top_db=top_db,
          frame_length=frame_length,
          hop_length=hop_length,
      )
  
      assert np.all(intervals <= y.shape[-1])
  
      int_match = librosa.util.match_intervals(intervals, idx_true)
  
      for i in range(len(intervals)):
          i_true = idx_true[int_match[i]]
  
          assert np.all(
              np.abs(i_true - intervals[i]) <= frame_length
          ), intervals[i]
  
imports: import warnings
  import os
  from contextlib import nullcontext
  import numpy
  import pytest
  import librosa
label_desc: Use image node_id 19 for calling a global function with example usage: test_split(y_split_idx, frame_length, hop_length, top_db) without return types