code: def testReduce(
      self, ragged_reduce_op, rt_input, axis, keepdims, expected
  ):
      rt_input = ragged_factory_ops.constant(rt_input)
      reduced = ragged_reduce_op(rt_input, axis, keepdims=keepdims)
      self.assertAllEqual(reduced, expected)
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.ops.ragged import ragged_math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the RaggedReduceOpsTest obj's underlying member method code with example usage: obj.testReduce(ragged_reduce_op, rt_input, axis, keepdims, expected) without return types