code: def test_multinomial_proportions_errors():
      # Out-of-bounds values for alpha raise a ValueError
      for alpha in [-0.1, 0, 1, 1.1]:
          assert_raises(
              ValueError,
              multinomial_proportions_confint,
              [5] * 50,
              alpha=alpha,
          )
  
      assert_raises(
          ValueError, multinomial_proportions_confint, np.arange(50) - 1
      )
      # Any unknown method is reported.
      for method in ["unknown_method", "sisok_method", "unknown-glaz"]:
          assert_raises(
              NotImplementedError,
              multinomial_proportions_confint,
              [5] * 50,
              method=method,
          )
  
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 6 for calling a global function with example usage: test_multinomial_proportions_errors() without return types