code: def test_errors(setup):
      with pytest.raises(ValueError):
          GARCH(p=-1)
      with pytest.raises(ValueError):
          GARCH(o=-1)
      with pytest.raises(ValueError):
          GARCH(q=-1)
      with pytest.raises(ValueError):
          GARCH(p=0, q=0)
      with pytest.raises(ValueError):
          GARCH(power=-0.5)
      with pytest.raises(ValueError):
          EWMAVariance(lam=-0.5)
      with pytest.raises(ValueError):
          RiskMetrics2006(tau0=1, tau1=10)
      with pytest.raises(ValueError):
          RiskMetrics2006(tau0=1, tau1=10)
      with pytest.raises(ValueError):
          RiskMetrics2006(tau1=-10)
      with pytest.raises(ValueError):
          RiskMetrics2006(tau0=10, tau1=8, rho=1.5)
      with pytest.raises(ValueError):
          RiskMetrics2006(kmax=0)
      with pytest.raises(ValueError):
          RiskMetrics2006(rho=0.5)
  
imports: import types
  from typing import NamedTuple
  import warnings
  import numpy
  from numpy.random import RandomState
  from numpy.testing import assert_allclose, assert_almost_equal, assert_array_equal, assert_equal
  import pytest
  from scipy.special import gamma, gammaln
  from arch.univariate import ZeroMean
  from arch.univariate.distribution import Normal, SkewStudent, StudentsT
  import arch.univariate.recursions_python
  from arch.univariate.volatility import APARCH, ARCH, EGARCH, FIGARCH, GARCH, HARCH, ConstantVariance, EWMAVariance, FixedVariance, MIDASHyperbolic, RiskMetrics2006
  from arch.utility.exceptions import InitialValueWarning
label_desc: Use image node_id 13 for calling a global function with example usage: test_errors(setup) without return types