code: def pad(array, pad_width, mode="constant", **kwargs):
      return ivy.pad(array, pad_width, mode=mode, **kwargs)
  
imports: import ivy
  from ivy.functional.frontends.jax.func_wrapper import to_ivy_arrays_and_back, handle_jax_dtype
  from ivy.functional.frontends.jax.numpy import promote_types_of_jax_inputs
label_desc: Use image node_id 27 for calling a global function with example usage: pad(array, pad_width, mode) and returns: ivy