code: def phase_vocoder(
      D: np.ndarray,
      rate: float,
      phi_advance: np.ndarray,
      scale_buffer: np.ndarray,
  ):
      """
      Optimized implementation of phase vocoder from Librosa.
      Reference implementation:
          - https://librosa.github.io/librosa/generated/librosa.core.phase_vocoder.html
      Args:
          D: Complex spectograms of shape [d, t, complex=2].
          rate: Speed rate, must be float greater than 0.
          phi_advance: Precomputed phase advance buffer array of length [n_fft + 1]
          scale_buffer: Precomputed numpy buffer array of length [n_fft + 1]
      Returns:
          Complex64 ndarray of shape [d, t / rate, complex=2]
      """
      time_steps = np.arange(0, D.shape[1], rate, dtype=np.float64)
  
      # Create an empty output array
      d_stretch = np.zeros(
          (D.shape[0], len(time_steps)), D.dtype, order="F"
      )
  
      # Phase accumulator; initialize to the first sample
      phase_acc = np.angle(D[:, 0])
  
      # Pad 0 columns to simplify boundary logic
      D = np.pad(D, [(0, 0), (0, 2)], mode="constant")
  
      d_stretch = _phase_vocoder_kernel(
          D, time_steps, phi_advance, d_stretch, phase_acc, scale_buffer
      )
  
      return d_stretch
  
label_desc: Use image node_id 1 for calling a global function with example usage: phase_vocoder(D, rate, phi_advance, scale_buffer) and returns: d_stretch