code: def test_efdr():
      # generate the data
      n = 100000
      x = np.random.randn(n)
      x[:3000] += 3
      # make the tests
      efdr = NormalEmpiricalNull(x)
      np.testing.assert_array_less(efdr.fdr(3.0), 0.2)
      np.testing.assert_array_less(-efdr.threshold(alpha=0.05), -2.8)
      np.testing.assert_array_less(
          -efdr.uncorrected_threshold(alpha=0.001), -2.5
      )
  
file_path: nipy/nipy/algorithms/statistics/tests/test_empirical_pvalue.py
imports: import numpy
  from ..empirical_pvalue import NormalEmpiricalNull, fdr, fdr_threshold, gaussian_fdr, gaussian_fdr_threshold, smoothed_histogram_from_samples
label_desc: Use image node_id 1 for calling a global function with example usage: test_efdr() without return types