code: def test_Classifications(self, algo):
      iris = datasets.load_iris()
      df = pdml.ModelFrame(iris)
  
      mod1 = getattr(df.dummy, algo)(
          strategy="most_frequent", random_state=self.random_state
      )
      mod2 = getattr(dummy, algo)(
          strategy="most_frequent", random_state=self.random_state
      )
  
      df.fit(mod1)
      mod2.fit(iris.data, iris.target)
  
      result = df.predict(mod1)
      expected = mod2.predict(iris.data)
  
      self.assertIsInstance(result, pdml.ModelSeries)
      self.assert_numpy_array_almost_equal(result.values, expected)
  
      self.assertEqual(
          df.score(mod1), mod2.score(iris.data, iris.target)
      )
  
file_path: pandas-ml/pandas_ml/skaccessors/test/test_dummy.py
imports: import pytest
  import sklearn.datasets
  import sklearn.dummy
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 2 for calling the TestDummy obj's underlying member method code with example usage: obj.test_Classifications(algo) without return types