code: def test_multinomial_1d_pval():
      # gh-20483
      with pytest.raises(TypeError, match="pvals must be a 1-d"):
          random.multinomial(10, 0.3)
  
imports: import sys
  import pytest
  from numpy.testing import assert_, assert_array_equal, assert_raises
  import numpy
  from numpy import random
label_desc: Use image node_id 2 for calling a global function with example usage: test_multinomial_1d_pval() without return types