code: def test_cross_similarity_badmode():
      srand()
      data_ref = np.random.randn(3, 70)
      data = np.random.randn(3, 50)
  
      rec = librosa.segment.cross_similarity(
          data,
          data_ref,
          mode="NOT A MODE",
          metric="sqeuclidean",
          sparse=True,
      )
  
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 6 for calling a global function with example usage: test_cross_similarity_badmode() without return types