code: def test_basic(as_ndarray, persist_embedding):
      sc = SpectralClustering(
          n_components=25,
          random_state=0,
          persist_embedding=persist_embedding,
      )
      if as_ndarray:
          X_ = X.compute()
      else:
          X_ = X
      sc.fit(X_)
      assert len(sc.labels_) == len(X_)
  
file_path: dask-ml/tests/test_spectral_clustering.py
imports: from functools import partial
  import numpy
  import pytest
  import sklearn.cluster
  from dask_ml import metrics
  from dask_ml.cluster import SpectralClustering
  from dask_ml.datasets import make_blobs
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic(as_ndarray, persist_embedding) without return types