code: def test_F1():
      x = np.linspace(0.1, 10, 100)
      for dim in range(1, 10):
          for dfn in range(5, 10):
              for dfd in [40, 50, np.inf]:
                  f1 = F(x, dim, dfn=dfn, dfd=dfd)
                  f2 = F_alternative(x, dim, dfn=dfn, dfd=dfd)
                  assert_almost_equal(f1, f2)
  
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 27 for calling a global function with example usage: test_F1() without return types