code: def test_proportion_ztests():
      # currently only consistency test with proportions chisquare
      # Note: alternative handling is generic
  
      res1 = smprop.proportions_ztest(15, 20.0, value=0.5, prop_var=0.5)
      res2 = smprop.proportions_chisquare(15, 20.0, value=0.5)
      assert_almost_equal(res1[1], res2[1], decimal=13)
  
      res1 = smprop.proportions_ztest(
          np.asarray([15, 10]),
          np.asarray([20.0, 20]),
          value=0,
          prop_var=None,
      )
      res2 = smprop.proportions_chisquare(
          np.asarray([15, 10]), np.asarray([20.0, 20])
      )
      # test only p-value
      assert_almost_equal(res1[1], res2[1], decimal=13)
  
      # test with integers, issue #7603
      res1 = smprop.proportions_ztest(
          np.asarray([15, 10]),
          np.asarray([20, 50000]),
          value=0,
          prop_var=None,
      )
      res2 = smprop.proportions_chisquare(
          np.asarray([15, 10]), np.asarray([20, 50000])
      )
      # test only p-value
      assert_almost_equal(res1[1], res2[1], decimal=13)
      assert_array_less(0, res2[-1][1])
  
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 15 for calling a global function with example usage: test_proportion_ztests() without return types