code: def test_figarch_weights():
      params = np.array([0.2, 0.4, 0.2])
      lam_py = recpy.figarch_weights_python(params, 1, 1, 1000)
      lam_nb = recpy.figarch_weights(params, 1, 1, 1000)
      lam_cy = rec.figarch_weights(params, 1, 1, 1000)
      assert_allclose(lam_py, lam_nb)
      assert_allclose(lam_py, lam_cy)
  
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 38 for calling a global function with example usage: test_figarch_weights() without return types