code: def nanmedian(
      a,
      /,
      *,
      axis=None,
      keepdims=False,
      out=None,
      overwrite_input=False,
  ):
      return ivy.nanmedian(
          a,
          axis=axis,
          keepdims=keepdims,
          out=out,
          overwrite_input=overwrite_input,
      ).astype(a.dtype)
  
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 18 for calling a global function with example usage: nanmedian() and returns: ivy