code: def test_NearestNeigbors(self, algo):
      iris = datasets.load_iris()
      df = pdml.ModelFrame(iris)
  
      mod1 = getattr(df.neighbors, algo)(10)
      mod2 = getattr(neighbors, algo)(10)
  
      df.fit(mod1)
      mod2.fit(iris.data, iris.target)
  
      # df doesn't have kneighbors
      result = mod1.kneighbors(df.data)
      expected = mod2.kneighbors(iris.data)
      self.assert_numpy_array_almost_equal(result, expected)
  
file_path: pandas-ml/pandas_ml/skaccessors/test/test_neighbors.py
imports: import pytest
  import sklearn.datasets
  import sklearn.neighbors
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 4 for calling the TestNeighbors obj's underlying member method code with example usage: obj.test_NearestNeigbors(algo) without return types