class_docstr: Sum of array elements over a given axis.
code: def __init__(self, axis=None, keepdims=False):
      if axis is None:
          self.axis = None
      elif isinstance(axis, six.integer_types):
          self.axis = (axis,)
      elif isinstance(axis, tuple) and all(
          isinstance(a, six.integer_types) for a in axis
      ):
          if len(set(axis)) != len(axis):
              raise ValueError(
                  "duplicate value in axis: ({})".format(
                      ", ".join(map(str, axis))
                  )
              )
          self.axis = axis
      else:
          raise TypeError("None, int or tuple of int are required")
  
      self.keepdims = keepdims
  
imports: import numpy
  import six
  import chainer
  from chainer import backend
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
  import chainerx
label_desc: Use image node_id 1 to create a new Sum object from inherited base classes: function_node with example: obj = Sum(axis, keepdims)