code: def test_polynomial2():
      # EC density of chi^2(1) is 2 * EC density of Gaussian so polynomial part is
      # a factor of 2 as well.
      for dim in range(1, 10):
          q = rft.ChiSquared(dfn=1).quasi(dim)
          h = hermitenorm(dim - 1)
          assert_almost_equal(q.c, 2 * h.c)
  
imports: import numpy
  import scipy.stats
  from scipy.special import gammaln, hermitenorm
  import pytest
  from numpy.testing import assert_almost_equal
  from ..None import rft
label_desc: Use image node_id 7 for calling a global function with example usage: test_polynomial2() without return types