code: def _compare(self, x, axis, exclusive, reverse):
      np_out = handle_options(
          np.cumprod, np.ones_like, x, axis, exclusive, reverse
      )
      with self.session(), self.test_scope():
          p = array_ops.placeholder(x.dtype)
          prod = math_ops.cumprod(p, axis, exclusive, reverse)
          tf_out = prod.eval(feed_dict={p: x})
  
      self.assertAllClose(np_out, tf_out)
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  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 array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the CumprodTest obj's underlying member method code with example usage: obj._compare(x, axis, exclusive, reverse) without return types