code: def prod(x, axis=None, keepdims=False):
      """Product of array elements over a given axis.
  
      Args:
          x (:class:`~chainer.Variable` or :ref:`ndarray`):
              Elements to calculate the product.
          axis (None, int, or tuple of int): Axis which a product is performed.
              The default (axis = None) is perform a product over all the
              dimensions of the input array.
          keepdims (bool): If ``True``, the specified axes are remained as axes
              of length one.
  
      Returns:
          ~chainer.Variable: Output variable.
  
      """
      return Prod(axis, keepdims).apply((x,))[0]
  
file_path: chainer/chainer/functions/math/prod.py
imports: import numpy
  import six
  from chainer import backend
  from chainer import function_node
  import chainer.functions
  from chainer.utils import type_check
label_desc: Use image node_id 1 for calling a global function with example usage: prod(x, axis, keepdims) and returns: Prod