code: def testAxisType(self):
      for dtype in self.valid_dtypes:
          x = np.arange(1, 6).reshape([5]).astype(dtype)
          for axis_dtype in [dtypes.int64, dtypes.int32]:
              with self.cached_session():
                  axis = constant_op.constant(0, axis_dtype)
                  tf_out = math_ops.cumprod(x, axis).eval()
  
imports: import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the CumprodTest obj's underlying member method code with example usage: obj.testAxisType() without return types