code: def test_pvalcorrection_reject(alpha, method, ii):
      # consistency test for reject boolean and pvalscorr
  
      pval1 = np.hstack(
          (
              np.linspace(0.0001, 0.0100, ii),
              np.linspace(0.05001, 0.11, 10 - ii),
          )
      )
      # using .05001 instead of 0.05 to avoid edge case issue #768
      reject, pvalscorr = multipletests(
          pval1, alpha=alpha, method=method
      )[:2]
  
      msg = "case %s %3.2f rejected:%d\npval_raw=%r\npvalscorr=%r" % (
          method,
          alpha,
          reject.sum(),
          pval1,
          pvalscorr,
      )
      assert_equal(reject, pvalscorr <= alpha, err_msg=msg)
  
imports: import pytest
  import numpy
  from numpy.testing import assert_almost_equal, assert_equal, assert_allclose
  from statsmodels.stats.multitest import multipletests, fdrcorrection, fdrcorrection_twostage, NullDistribution, local_fdr, multitest_methods_names
  from statsmodels.stats.multicomp import tukeyhsd
  from scipy.stats.distributions import norm
  import scipy
  from packaging import version
label_desc: Use image node_id 1 for calling a global function with example usage: test_pvalcorrection_reject(alpha, method, ii) without return types