code: def sum(
      self: ivy.Array,
      /,
      *,
      axis: Optional[Union[int, Sequence[int]]] = None,
      keepdims: bool = False,
      dtype: Optional[Union[ivy.Dtype, ivy.NativeDtype]] = None,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      return ivy.sum(
          self, axis=axis, dtype=dtype, keepdims=keepdims, out=out
      )
  
file_path: ivy/ivy/data_classes/array/statistical.py
imports: from typing import Optional, Union, Sequence
  import abc
  import ivy
label_desc: Use image node_id 6 for calling the _ArrayWithStatistical obj's underlying member method code with example usage: obj.sum() and returns: ivy