code: def test_frame_target_object(self):
      df = pd.DataFrame(
          {
              datetime.datetime(2014, 1, 1): [1, 2, 3],
              datetime.datetime(2015, 1, 1): [4, 5, 6],
              datetime.datetime(2016, 1, 1): [7, 8, 9],
          },
          index=["a", "b", "c"],
      )
      mdf = pdml.ModelFrame(df, target=datetime.datetime(2016, 1, 1))
  
      self.assertIsInstance(mdf, pdml.ModelFrame)
      self.assertEqual(mdf.shape, (3, 3))
      tm.assert_index_equal(mdf.index, pd.Index(["a", "b", "c"]))
      expected = pd.DatetimeIndex(
          ["2014-01-01", "2015-01-01", "2016-01-01"]
      )
      tm.assert_index_equal(mdf.columns, expected)
      tm.assert_frame_equal(mdf.data, df.iloc[:, :2])
      expected = pd.Series(
          [7, 8, 9],
          index=["a", "b", "c"],
          name=pd.Timestamp("2016-01-01"),
      )
      tm.assert_series_equal(mdf.target, expected)
      self.assertEqual(mdf.target.name, datetime.datetime(2016, 1, 1))
      self.assertEqual(mdf.target_name, datetime.datetime(2016, 1, 1))
  
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 16 for calling the TestModelFrame obj's underlying member method code with example usage: obj.test_frame_target_object() without return types