code: def test_error(self):
      with pytest.raises(
          ValueError, match="We don't support input data currently"
      ):
          self.model.evaluate(target=self.validation_data, data=1)
  
      with pytest.raises(
          ValueError, match="Input invalid target of None"
      ):
          self.model.evaluate(target=None)
  
      with pytest.raises(
          Exception,
          match="Needs to call fit_eval or restore first before calling predict",
      ):
          self.model.predict()
  
      with pytest.raises(
          Exception,
          match="Needs to call fit_eval or restore first before calling evaluate",
      ):
          self.model.evaluate(target=self.validation_data)
  
      with pytest.raises(
          Exception,
          match="Needs to call fit_eval or restore first before calling save",
      ):
          model_file = "tmp.json"
          self.model.save(model_file)
  
file_path: analytics-zoo/pyzoo/test/zoo/chronos/model/test_prophet.py
imports: import pytest
  from test.zoo.pipeline.utils.test_utils import ZooTestCase
  from zoo.chronos.model.prophet import ProphetModel
  import numpy
  import os
  from numpy.testing import assert_array_almost_equal
  import pandas
label_desc: Use image node_id 4 for calling the TestProphetModel obj's underlying member method code with example usage: obj.test_error() without return types