code: def multinomial(x, num_samples=1, replacement=False, name=None):
      n = num_samples + 1
      return ivy.multinomial(
          n, num_samples, probs=x, replace=replacement
      )
  
file_path: ivy/ivy/functional/frontends/paddle/random.py
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.func_wrapper import with_supported_device_and_dtypes, with_unsupported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
label_desc: Use image node_id 1 for calling a global function with example usage: multinomial(x, num_samples, replacement, name) and returns: ivy