code: def test_samplesize_confidenceinterval_prop():
      # consistency test for samplesize to achieve confidence_interval
      nobs = 20
      ci = smprop.proportion_confint(
          12, nobs, alpha=0.05, method="normal"
      )
      res = smprop.samplesize_confint_proportion(
          12.0 / nobs, (ci[1] - ci[0]) / 2
      )
      assert_almost_equal(res, nobs, decimal=13)
  
imports: import warnings
  import numpy
  from numpy.testing import assert_allclose, assert_almost_equal, assert_array_less, assert_equal, assert_raises
  import pandas
  import pytest
  import statsmodels.stats.proportion
  from statsmodels.stats.proportion import confint_proportions_2indep, multinomial_proportions_confint, power_proportions_2indep, proportion_confint, samplesize_proportions_2indep_onetail, score_test_proportions_2indep
  from statsmodels.tools.sm_exceptions import HypothesisTestWarning
  from statsmodels.tools.testing import Holder
  from statsmodels.stats.tests.results.results_proportion import res_binom, res_binom_methods
label_desc: Use image node_id 3 for calling a global function with example usage: test_samplesize_confidenceinterval_prop() without return types