code: def test_frame_init_dict_list_series_index(self):
      # initialization by dataframe and list
      df = {"A": [1, 2, 3], "B": [4, 5, 6], "C": [7, 8, 9]}
      target = pd.Series([9, 8, 7], name="X", index=["a", "b", "c"])
      mdf = pdml.ModelFrame(df, target=target)
  
      self.assertIsInstance(mdf, pdml.ModelFrame)
      self.assertEqual(mdf.shape, (3, 4))
      tm.assert_index_equal(mdf.index, pd.Index(["a", "b", "c"]))
      tm.assert_index_equal(mdf.columns, pd.Index(["X", "A", "B", "C"]))
      expected = pd.DataFrame(df, index=["a", "b", "c"])
      tm.assert_frame_equal(mdf.data, expected)
      tm.assert_series_equal(mdf.target, target)
      self.assertEqual(mdf.target.name, "X")
      self.assertEqual(mdf.target_name, "X")
  
imports: import pytest
  import datetime
  import warnings
  import numpy
  import pandas
  import sklearn.datasets
  import sklearn.svm
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 7 for calling the TestModelFrame obj's underlying member method code with example usage: obj.test_frame_init_dict_list_series_index() without return types