code: def trapz(y, x=None, dx=1.0, axis=-1):
      return ivy.trapz(y, x=x, dx=dx, axis=axis)
  
file_path: ivy/ivy/functional/frontends/numpy/mathematical_functions/sums_products_differences.py
imports: import ivy
  from ivy.functional.frontends.numpy.func_wrapper import to_ivy_arrays_and_back, handle_numpy_dtype, from_zero_dim_arrays_to_scalar, handle_numpy_out
  import ivy.functional.frontends.numpy
label_desc: Use image node_id 11 for calling a global function with example usage: trapz(y, x, dx, axis) and returns: ivy