code: def test_figarch_weights(self):
      parameters = np.array([1.0, 0.4])
      lam = rec.figarch_weights(parameters[1:], 0, 0, trunc_lag=1000)
      lam_direct = np.empty_like(lam)
      lam_direct[0] = parameters[-1]
      for i in range(1, 1000):
          lam_direct[i] = (
              (i - parameters[-1]) / (i + 1) * lam_direct[i - 1]
          )
      assert_almost_equal(lam, lam_direct)
  
imports: import os
  import pickle
  import timeit
  import types
  import numpy
  from numpy.random import RandomState
  from numpy.testing import assert_allclose, assert_almost_equal
  import pytest
  from scipy.special import gamma
  import arch.univariate.recursions_python
  from arch.univariate.volatility import RiskMetrics2006
label_desc: Use image node_id 18 for calling the TestRecursions obj's underlying member method code with example usage: obj.test_figarch_weights() without return types