code: def testReduceSumWithDuplicateAxes(self, index_dtype):
      with self.session() as sess:
          with self.test_scope():
              a = array_ops.placeholder(np.float32)
              index = array_ops.placeholder(np.int32)
              out = math_ops.reduce_sum(a, index)
          with self.assertRaisesWithPredicateMatch(
              errors_impl.InvalidArgumentError,
              "Axes contains duplicate dimension",
          ):
              sess.run(out, {a: [10, 20, 30], index: [0, 0]})
  
imports: import functools
  import itertools
  from absl.testing import parameterized
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  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 googletest
label_desc: Use image node_id 13 for calling the ReduceOpsTest obj's underlying member method code with example usage: obj.testReduceSumWithDuplicateAxes(index_dtype) without return types