code: def test_tost_poisson():
      count1, n1, count2, n2 = 60, 51477.5, 30, 54308.7
      # # central conf_int from R exactci
      low, upp = 1.339735721772650, 3.388365573616252
  
      res = smr.tost_poisson_2indep(
          count1, n1, count2, n2, low, upp, method="exact-cond"
      )
  
      assert_allclose(res.pvalue, 0.025, rtol=1e-12)
      methods = ["wald", "score", "sqrt", "exact-cond", "cond-midp"]
  
      # test that we are in the correct range for other methods
      for meth in methods:
          res = smr.tost_poisson_2indep(
              count1, n1, count2, n2, low, upp, method=meth
          )
          assert_allclose(res.pvalue, 0.025, atol=0.01)
  
imports: import pytest
  import warnings
  import numpy
  from numpy import arange
  from numpy.testing import assert_allclose, assert_equal
  from scipy import stats
  import statsmodels.stats.rates
  from statsmodels.stats.rates import confint_poisson, tolerance_int_poisson, confint_quantile_poisson, etest_poisson_2indep, confint_poisson_2indep, nonequivalence_poisson_2indep, power_poisson_ratio_2indep, power_equivalence_poisson_2indep, power_poisson_diff_2indep, power_equivalence_neginb_2indep, power_negbin_ratio_2indep, method_names_poisson_1samp, method_names_poisson_2indep
label_desc: Use image node_id 11 for calling a global function with example usage: test_tost_poisson() without return types