code: def _compare(self, x, axis, exclusive, reverse):
      np_out = handle_options(np.cumprod, x, axis, exclusive, reverse)
      with self.cached_session():
          tf_out = math_ops.cumprod(x, axis, exclusive, reverse).eval()
  
      atol = rtol = 1e-6
      if x.dtype == dtypes.bfloat16.as_numpy_dtype:
          atol = rtol = 1e-2
      self.assertAllClose(np_out, tf_out, atol=atol, rtol=rtol)
  
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 1 for calling the CumprodTest obj's underlying member method code with example usage: obj._compare(x, axis, exclusive, reverse) without return types