code: def test_chi2():
      # Quasi-polynomial part of the chi^2 EC density should
      # be the limiting polyF.
      for dim in range(1, 10):
          for dfn in range(5, 10):
              c = rft.ChiSquared(dfn=dfn)
              p1 = c.quasi(dim=dim)
              p2 = polyF(dim=dim, dfn=dfn)
              assert_almost_equal(p1.c, p2.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 10 for calling a global function with example usage: test_chi2() without return types