code: def test_forecast_errors(data):
      res = ThetaModel(data, period=12).fit()
      with pytest.raises(
          ValueError, match="steps must be a positive integer"
      ):
          res.forecast(-1)
      with pytest.raises(ValueError, match="theta must be a float"):
          res.forecast(7, theta=0.99)
      with pytest.raises(
          ValueError, match="steps must be a positive integer"
      ):
          res.forecast_components(0)
  
file_path: statsmodels/statsmodels/tsa/forecasting/tests/test_theta.py
imports: from itertools import product
  import numpy
  import pandas
  import pytest
  from statsmodels.tsa.forecasting.theta import ThetaModel
label_desc: Use image node_id 6 for calling a global function with example usage: test_forecast_errors(data) without return types