code: def nanstd(
      a,
      /,
      *,
      axis=None,
      dtype=None,
      out=None,
      ddof=0,
      keepdims=False,
      where=True,
  ):
      a = ivy.nan_to_num(a)
      axis = tuple(axis) if isinstance(axis, list) else axis
  
      if dtype:
          a = ivy.astype(ivy.array(a), ivy.as_ivy_dtype(dtype))
  
      ret = ivy.std(
          a, axis=axis, correction=ddof, keepdims=keepdims, out=out
      )
      if ivy.is_array(where):
          ret = ivy.where(
              where, ret, ivy.default(out, ivy.zeros_like(ret)), out=out
          )
  
      return ret
  
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 21 for calling a global function with example usage: nanstd() and returns: ret