code: def test_dtw_subseq_steps():
      # Verify that the same warping path is computed for backtracking
      # within the dtw function and manually outside by the user
      # See https://github.com/librosa/librosa/pull/1166
      X = np.array([1, 2, 3, 4, 5])
      Y = np.array([1, 1, 1, 2, 4, 5, 6, 5, 5])
      gt_wp = np.array([[0, 2], [1, 3], [2, 3], [3, 4], [4, 5]])
  
      D1, wp1 = librosa.sequence.dtw(X, Y, subseq=True, backtrack=True)
      wp1 = wp1[::-1]
  
      D2, steps = librosa.sequence.dtw(
          X, Y, subseq=True, backtrack=False, return_steps=True
      )
      start_idx = np.argmin(D2[-1, :])
      wp2 = librosa.sequence.dtw_backtracking(
          steps, subseq=True, start=start_idx
      )
      wp2 = wp2[::-1]
  
      assert np.array_equal(D1, D2)
      assert np.array_equal(gt_wp, wp1)
      assert np.array_equal(wp1, wp2)
  
imports: import librosa
  import numpy
  from scipy.spatial.distance import cdist
  import pytest
  from test_core import srand
label_desc: Use image node_id 7 for calling a global function with example usage: test_dtw_subseq_steps() without return types