code: def choose(arr, choices, out=None, mode="raise"):
      return ivy.choose(arr, choices, out=out, mode=mode)
  
imports: import inspect
  import abc
  import ivy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back
  from .creation import linspace, arange, array
  from .manipulations import transpose, concatenate, expand_dims
label_desc: Use image node_id 2 for calling a global function with example usage: choose(arr, choices, out, mode) and returns: ivy