code: def test_base_model(self) -> None:
      model = Model()
      raw_state = {"foo": "bar", "two": 3.0}
      self.assertEqual(model.serialize_state(raw_state), raw_state)
      self.assertEqual(model.deserialize_state(raw_state), raw_state)
      self.assertEqual(model._get_state(), {})
      with self.assertRaisesRegex(
          NotImplementedError, "Feature importance not available"
      ):
          model.feature_importances()
  
imports: from ax.models.base import Model
  from ax.utils.common.testutils import TestCase
label_desc: Use image node_id 1 for calling the BaseModelTest obj's underlying member method code with example usage: obj.test_base_model() without return types