code: def var(a, axis=None, dtype=None, out=None, ddof=0, keepdims=False):
      """Returns the variance along an axis.
  
      Args:
          a (cupy.ndarray): Array to compute variance.
          axis (int): Along which axis to compute variance. The flattened array
              is used by default.
          dtype: Data type specifier.
          out (cupy.ndarray): Output array.
          keepdims (bool): If ``True``, the axis is remained as an axis of
              size one.
  
      Returns:
          cupy.ndarray: The variance of the input array along the axis.
  
      .. seealso:: :func:`numpy.var`
  
      """
      # TODO(okuta): check type
      return a.var(
          axis=axis, dtype=dtype, out=out, ddof=ddof, keepdims=keepdims
      )
  
file_path: cupy/cupy/_statistics/meanvar.py
imports: import functools
  import numpy
  import cupy
  from cupy._core import _routines_statistics
label_desc: Use image node_id 5 for calling a global function with example usage: var(a, axis, dtype, out, ddof, keepdims) and returns: a