code: def test_kneighbors_graph(self):
      x = [[0], [3], [1]]
      df = pdml.ModelFrame(x)
  
      result = df.neighbors.kneighbors_graph(2)
      expected = neighbors.kneighbors_graph(x, 2)
  
      self.assert_numpy_array_almost_equal(
          result.toarray(), expected.toarray()
      )
  
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 2 for calling the TestNeighbors obj's underlying member method code with example usage: obj.test_kneighbors_graph() without return types