code: def ptp(a, axis=None, out=None, keepdims=False):
      x = ivy.max(a, axis=axis, keepdims=keepdims)
      y = ivy.min(a, axis=axis, keepdims=keepdims)
      return ivy.subtract(x, y)
  
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  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
  from ivy.functional.backends.jax.experimental.elementwise import _normalize_axis_tuple
label_desc: Use image node_id 23 for calling a global function with example usage: ptp(a, axis, out, keepdims) and returns: ivy