code: def test_dbscan(self):
      iris = datasets.load_iris()
      df = pdml.ModelFrame(iris)
  
      result = df.cluster.dbscan()
      expected = cluster.dbscan(iris.data)
  
      self.assertEqual(len(result), 2)
      self.assert_numpy_array_almost_equal(result[0], expected[0])
      self.assertIsInstance(result[1], pdml.ModelSeries)
      tm.assert_index_equal(result[1].index, df.index)
      tm.assert_numpy_array_equal(result[1].values, expected[1])
  
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 7 for calling the TestCluster obj's underlying member method code with example usage: obj.test_dbscan() without return types