code: def dirichlet(key, alpha, shape=None, dtype="float32"):
      seed = _get_seed(key)
      alpha = ivy.astype(alpha, dtype)
      return ivy.dirichlet(alpha, size=shape, dtype=dtype, seed=seed)
  
imports: import operator
  import ivy
  from ivy.func_wrapper import with_unsupported_dtypes, with_supported_dtypes
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back, handle_jax_dtype
label_desc: Use image node_id 9 for calling a global function with example usage: dirichlet(key, alpha, shape, dtype) and returns: ivy