code: def var(
      x,
      /,
      *,
      axis=None,
      ddof=0.0,
      keepdims=False,
      out=None,
      dtype=None,
      where=True,
  ):
      axis = tuple(axis) if isinstance(axis, list) else axis
      dtype = (
          dtype
          if dtype is not None
          else ivy.float64
          if ivy.is_int_dtype(x.dtype)
          else x.dtype
      )
      ret = ivy.var(
          x, axis=axis, correction=ddof, keepdims=keepdims, out=out
      )
      ret = (
          ivy.where(
              where, ret, ivy.default(out, ivy.zeros_like(ret)), out=out
          )
          if ivy.is_array(where)
          else ret
      )
      return ret.astype(dtype, copy=False)
  
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 9 for calling a global function with example usage: var() and returns: ret