code: def test_polynomial3():
      # EC density of F with infinite dfd is the same as chi^2 --
      # polynomials should be the same.
      for dim in range(10):
          for dfn in range(5, 10):
              q1 = rft.FStat(dfn=dfn, dfd=np.inf).quasi(dim)
              q2 = rft.ChiSquared(dfn=dfn).quasi(dim)
              assert_almost_equal(q1.c, q2.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 8 for calling a global function with example usage: test_polynomial3() without return types