code: def _multinomial_helper(draw):
      input_dtype_and_x = draw(
          helpers.dtype_and_values(
              available_dtypes=helpers.get_dtypes("valid"),
              shape=helpers.get_shape(
                  min_num_dims=1, max_num_dims=2, min_dim_size=2
              ),
          )
      )
      num_samples = draw(st.integers(min_value=1, max_value=10))
      if num_samples > 2:
          replacement = True
      else:
          replacement = draw(st.booleans())
  
      input_dtype, x = input_dtype_and_x
  
      total = sum(x)
      x = [arr / total for arr in x]
  
      return input_dtype, x, num_samples, replacement
  
file_path: ivy/ivy_tests/test_ivy/test_frontends/test_paddle/test_random.py
imports: from hypothesis import strategies
  import ivy_tests.test_ivy.helpers
  from ivy_tests.test_ivy.helpers import handle_frontend_test
label_desc: Use image node_id 1 for calling a global function with example usage: _multinomial_helper(draw) and returns: input_dtype,  x,  num_samples,  replacement