code: def test_error(self):
      with pytest.raises(RuntimeError, match="x should be None"):
          self.model.predict(x=1)
  
      with pytest.raises(
          RuntimeError, match="We don't support input x currently"
      ):
          self.model.evaluate(target=self.validation_data, x=1)
  
      with pytest.raises(
          RuntimeError, match="Input invalid target of None"
      ):
          self.model.evaluate(target=None)
  
      with pytest.raises(
          RuntimeError,
          match="Needs to call fit_eval or restore first before calling predict",
      ):
          self.model.predict(horizon=self.horizon)
  
      with pytest.raises(
          RuntimeError,
          match="We don't support updating model "
          "without rolling prediction currently",
      ):
          self.model.predict(
              horizon=self.horizon, update=True, rolling=False
          )
  
      with pytest.raises(
          RuntimeError,
          match="Needs to call fit_eval or restore first before calling evaluate",
      ):
          self.model.evaluate(target=self.validation_data, x=None)
  
      with pytest.raises(
          RuntimeError,
          match="Needs to call fit_eval or restore first before calling save",
      ):
          model_file = "tmp.pkl"
          self.model.save(model_file)
  
file_path: BigDL/python/chronos/test/bigdl/chronos/model/test_arima.py
imports: import pytest
  from unittest import TestCase
  from ..None import op_diff_set_all
  import numpy
  import os
  from numpy.testing import assert_array_almost_equal
  import pandas
  from bigdl.chronos.utils import LazyImport
label_desc: Use image node_id 4 for calling the TestARIMAModel obj's underlying member method code with example usage: obj.test_error() without return types