class_docstr: Cumulative sum of array elements over a given axis.
code: def check_type_forward(self, in_types):
      type_check._argname(in_types, ("x",))
      type_check.expect(in_types[0].dtype.kind == "f")
  
      if self.axis is not None:
          if self.axis >= 0:
              type_check.expect(self.axis < in_types[0].ndim)
          else:
              type_check.expect(-self.axis - 1 < in_types[0].ndim)
  
file_path: chainer/chainer/functions/math/cumsum.py
imports: import six
  from chainer import backend
  from chainer import function_node
  from chainer.functions.array import flip
  from chainer.utils import type_check
label_desc: Use image node_id 2 for calling the Cumsum obj's underlying member method code with example usage: obj.check_type_forward(in_types) without return types