code: def test_aparch_against_garch(setup):
      garch = GARCH()
      aparch = APARCH(o=0, delta=2.0)
      assert "o:" not in str(aparch)
      assert "Common Asym :" not in str(aparch)
  
      sv = garch.starting_values(setup.resids)
      assert_equal(sv.shape[0], aparch.num_params)
  
      backcast = aparch.backcast(setup.resids)
      var_bounds = aparch.variance_bounds(setup.resids)
      parameters = np.array([0.1, 0.1, 0.8])
      garch.compute_variance(
          parameters, setup.resids, setup.sigma2, backcast, var_bounds
      )
      aparch_sigma2 = setup.sigma2.copy()
      aparch.compute_variance(
          parameters, setup.resids, aparch_sigma2, backcast, var_bounds
      )
      assert_allclose(setup.sigma2, aparch_sigma2)
  
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 35 for calling a global function with example usage: test_aparch_against_garch(setup) without return types