code: def test_pitch_shift(ysr, n_steps, bins_per_octave, ctx, n_fft):
      with ctx:
          y, sr = ysr
          ys = librosa.effects.pitch_shift(
              y,
              sr=sr,
              n_steps=n_steps,
              bins_per_octave=bins_per_octave,
              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 orig_duration == new_duration
  
imports: import warnings
  import os
  from contextlib import nullcontext
  import numpy
  import pytest
  import librosa
label_desc: Use image node_id 5 for calling a global function with example usage: test_pitch_shift(ysr, n_steps, bins_per_octave, ctx, n_fft) without return types