code: def nanmean(
      a, axis=None, dtype=None, out=None, keepdims=False, *, where=True
  ):
      where = ~ivy.isnan(a) & where
      ret = mean(
          a, axis, dtype, keepdims=keepdims, where=where
      ).ivy_array
      if out is not None:
          out.data = ret.data
      return ret
  
file_path: ivy/ivy/functional/frontends/numpy/statistics/averages_and_variances.py
imports: import ivy
  from ivy.func_wrapper import with_unsupported_dtypes
  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
label_desc: Use image node_id 4 for calling a global function with example usage: nanmean(a, axis, dtype, out, keepdims) and returns: ret