code: def test_RBM(self, algo):
      digits = datasets.load_digits()
      df = pdml.ModelFrame(digits)
  
      mod1 = getattr(df.neural_network, algo)(
          random_state=self.random_state
      )
      mod2 = getattr(nn, algo)(random_state=self.random_state)
  
      df.fit(mod1)
      mod2.fit(digits.data, digits.target)
  
      result = df.transform(mod1)
      expected = mod2.transform(digits.data)
      self.assertIsInstance(result, pdml.ModelFrame)
      self.assert_numpy_array_almost_equal(result.data.values, expected)
  
file_path: pandas-ml/pandas_ml/skaccessors/test/test_neural_network.py
imports: import pytest
  import sklearn.datasets
  import sklearn.neural_network
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 2 for calling the TestNeuralNtwork obj's underlying member method code with example usage: obj.test_RBM(algo) without return types