code: def cumprod(x, axis=None):
      """Cumulative prod of array elements over a given axis.
  
      Args:
          x (:class:`~chainer.Variable` or :ref:`ndarray`):
              Elements to calculate the cumulative prod.
          axis (int or None):
              Axis along which the cumulative prod is taken.
              If it is not specified, the input is flattened.
  
      Returns:
          ~chainer.Variable: Output variable.
  
      """
      return Cumprod(axis).apply((x,))[0]
  
file_path: chainer/chainer/functions/math/cumprod.py
imports: import six
  import chainer
  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 a global function with example usage: cumprod(x, axis) and returns: Cumprod