code: def test_dict_learning_online(self):
      iris = datasets.load_iris()
      df = pdml.ModelFrame(iris)
  
      result = df.decomposition.dict_learning_online(
          random_state=self.random_state
      )
      expected = decomposition.dict_learning_online(
          iris.data, random_state=self.random_state
      )
  
      self.assertEqual(len(result), 2)
      self.assertIsInstance(result[0], pdml.ModelFrame)
      tm.assert_index_equal(result[0].index, df.data.index)
      self.assert_numpy_array_almost_equal(
          result[0].values, expected[0]
      )
  
      self.assertIsInstance(result[1], pdml.ModelFrame)
      tm.assert_index_equal(result[1].columns, df.data.columns)
      self.assert_numpy_array_almost_equal(
          result[1].values, expected[1]
      )
  
      result = df.decomposition.dict_learning_online(
          return_code=False, random_state=self.random_state
      )
      expected = decomposition.dict_learning_online(
          iris.data, return_code=False, random_state=self.random_state
      )
      self.assertIsInstance(result, pdml.ModelFrame)
      tm.assert_index_equal(result.columns, df.data.columns)
      self.assert_numpy_array_almost_equal(result.values, expected)
  
file_path: pandas-ml/pandas_ml/skaccessors/test/test_decomposition.py
imports: import pytest
  import sklearn.datasets
  import sklearn.decomposition
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 4 for calling the TestDecomposition obj's underlying member method code with example usage: obj.test_dict_learning_online() without return types