code: def test_frame_data_none(self):
      msg = "ModelFrame must have either data or target"
      with pytest.raises(ValueError, match=msg):
          mdf = pdml.ModelFrame(None)
  
      msg = "target must be list-like when data is None"
      with pytest.raises(ValueError, match=msg):
          mdf = pdml.ModelFrame(None, target="X")
  
      # initialization without data
      s = pd.Series([1, 2, 3], index=["a", "b", "c"], name=".target")
      mdf = pdml.ModelFrame(None, target=s)
  
      self.assertIsInstance(mdf, pdml.ModelFrame)
      self.assertEqual(mdf.shape, (3, 1))
      tm.assert_index_equal(mdf.index, pd.Index(["a", "b", "c"]))
      tm.assert_index_equal(mdf.columns, pd.Index([".target"]))
      self.assertTrue(mdf.data is None)
      self.assertFalse(mdf.has_data())
      tm.assert_series_equal(mdf.target, s)
      self.assertEqual(mdf.target.name, ".target")
      self.assertEqual(mdf.target_name, ".target")
  
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 10 for calling the TestModelFrame obj's underlying member method code with example usage: obj.test_frame_data_none() without return types