code: def bernoulli(key, p=0.5, shape=None):
      seed = _get_seed(key)
      return ivy.bernoulli(p, shape=shape, 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 5 for calling a global function with example usage: bernoulli(key, p, shape) and returns: ivy