code: def test_spectral_clustering(self):
      N = 50
      m = np.random.random_integers(1, 200, size=(N, N))
      m = (m + m.T) / 2
  
      df = pdml.ModelFrame(m)
      result = df.cluster.spectral_clustering(
          random_state=self.random_state
      )
      expected = cluster.spectral_clustering(
          m, random_state=self.random_state
      )
  
      self.assertIsInstance(result, pdml.ModelSeries)
      tm.assert_index_equal(result.index, df.index)
      tm.assert_numpy_array_equal(result.values, expected)
  
imports: import pytest
  import numpy
  import sklearn.datasets
  import sklearn.cluster
  import sklearn.preprocessing
  import sklearn.metrics
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 9 for calling the TestCluster obj's underlying member method code with example usage: obj.test_spectral_clustering() without return types