code: def test_multinomial_empty():
      # gh-20483
      # Ensure that empty p-vals are correctly handled
      assert random.multinomial(10, []).shape == (0,)
      assert random.multinomial(3, [], size=(7, 5, 3)).shape == (
          7,
          5,
          3,
          0,
      )
  
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 1 for calling a global function with example usage: test_multinomial_empty() without return types