code: def test_chi3():
      # EC density of chi^2(1) is 2 * EC density of Gaussian squared so EC
      # densities factor of 2 as well.
      x = np.linspace(0.1, 10, 100)
      for dim in range(10):
          g = rft.Gaussian()
          c = rft.ChiSquared(dfn=1)
          ec1 = g.density(np.sqrt(x), dim)
          ec2 = c.density(x, dim)
          assert_almost_equal(2 * ec1, ec2)
  
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 11 for calling a global function with example usage: test_chi3() without return types