code: def dirichlet(
      alpha: Union[np.ndarray, float, Sequence[float]],
      /,
      *,
      size: Optional[Union[ivy.NativeShape, Sequence[int]]] = None,
      dtype: Optional[np.dtype] = None,
      seed: Optional[int] = None,
      out: Optional[np.ndarray] = None,
  ) -> np.ndarray:
      size = size if size is not None else len(alpha)
      dtype = dtype if dtype is not None else np.float64
      if seed is not None:
          np.random.seed(seed)
      return np.asarray(
          np.random.dirichlet(alpha, size=size), dtype=dtype
      )
  
file_path: ivy/ivy/functional/backends/numpy/experimental/random.py
imports: from typing import Optional, Union, Sequence
  import numpy
  import ivy
  from ivy.functional.ivy.random import _check_bounds_and_get_shape, _check_shapes_broadcastable
label_desc: Use image node_id 1 for calling a global function with example usage: dirichlet() and returns: np