code: def test_time_stretch(ysr, rate, ctx, n_fft):
      with ctx:
          y, sr = ysr
          ys = librosa.effects.time_stretch(y, rate=rate, n_fft=n_fft)
  
          orig_duration = librosa.get_duration(y=y, sr=sr)
          new_duration = librosa.get_duration(y=ys, sr=sr)
  
          # We don't have to be too precise here, since this goes through an STFT
          assert np.allclose(
              orig_duration, rate * new_duration, rtol=1e-2, atol=1e-3
          )
  
imports: import warnings
  import os
  from contextlib import nullcontext
  import numpy
  import pytest
  import librosa
label_desc: Use image node_id 3 for calling a global function with example usage: test_time_stretch(ysr, rate, ctx, n_fft) without return types