code: def pad(input, pad_width, mode="constant", constant_values=0):
      return ivy.pad(
          input, pad_width, mode=mode, constant_values=constant_values
      )
  
imports: import ivy
  from ivy.func_wrapper import with_supported_dtypes
  from ivy.functional.frontends.paddle.func_wrapper import to_ivy_arrays_and_back
  from ivy.functional.ivy.experimental.layers import _broadcast_pooling_helper
label_desc: Use image node_id 18 for calling a global function with example usage: pad(input, pad_width, mode, constant_values) and returns: ivy