code: def test_ztost():
      xfair = np.repeat([1, 0], [228, 762 - 228])
  
      # comparing to SAS last output at
      # http://support.sas.com/documentation/cdl/en/procstat/63104/HTML/default/viewer.htm#procstat_freq_sect028.htm
      # confidence interval for tost
      # generic ztost is moved to weightstats
      from statsmodels.stats.weightstats import zconfint, ztost
  
      ci01 = zconfint(xfair, alpha=0.1, ddof=0)
      assert_almost_equal(ci01, [0.2719, 0.3265], 4)
      res = ztost(xfair, 0.18, 0.38, ddof=0)
  
      assert_almost_equal(res[1][0], 7.1865, 4)
      assert_almost_equal(res[2][0], -4.8701, 4)
      assert_array_less(res[0], 0.0001)
  
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 13 for calling a global function with example usage: test_ztost() without return types