code: def test_lag_to_recurrence_sparse_badaxis():
      srand()
  
      data = np.random.randn(3, 100)
      R = librosa.segment.recurrence_matrix(data, sparse=True)
      L = librosa.segment.recurrence_to_lag(R)
      librosa.segment.lag_to_recurrence(L, axis=2)
  
imports: from typing import Union
  import warnings
  import os
  import numpy
  import scipy
  from scipy.spatial.distance import cdist, pdist, squareform
  import pytest
  from test_core import srand
  import librosa
label_desc: Use image node_id 31 for calling a global function with example usage: test_lag_to_recurrence_sparse_badaxis() without return types