code: def testErrors(self):
      rt_input = ragged_factory_ops.constant([[1, 2, 3], [4, 5]])
      axis = array_ops.placeholder_with_default(
          constant_op.constant([0]), None
      )
  
      if not context.executing_eagerly():
          self.assertRaisesRegex(
              ValueError,
              r"axis must be known at graph construction time.",
              ragged_math_ops.reduce_sum,
              rt_input,
              axis,
          )
      self.assertRaisesRegex(
          TypeError,
          r"axis must be an int; got str.*",
          ragged_math_ops.reduce_sum,
          rt_input,
          ["x"],
      )
  
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 10 for calling the RaggedReduceOpsTest obj's underlying member method code with example usage: obj.testErrors() without return types