class_docstr: Test cases for segment reduction ops.
class_docstr_tok: ["Test","cases","for","segment","reduction","ops","."]
code: def testUnsortedSegmentSum1DIndices2DDataDisjoint(self):
      for dtype in self.numeric_types:
          data = np.array(
              [
                  [0, 1, 2, 3],
                  [20, 21, 22, 23],
                  [30, 31, 32, 33],
                  [40, 41, 42, 43],
                  [50, 51, 52, 53],
              ],
              dtype=dtype,
          )
          indices = np.array([8, 1, 0, 3, 7], dtype=np.int32)
          num_segments = 10
          y = self._unsortedSegmentSum(data, indices, num_segments)
          self.assertAllClose(
              np.array(
                  [
                      [30, 31, 32, 33],
                      [20, 21, 22, 23],
                      [0, 0, 0, 0],
                      [40, 41, 42, 43],
                      [0, 0, 0, 0],
                      [0, 0, 0, 0],
                      [0, 0, 0, 0],
                      [50, 51, 52, 53],
                      [0, 1, 2, 3],
                      [0, 0, 0, 0],
                  ],
                  dtype=dtype,
              ),
              y,
          )
  
imports: import functools
  import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.client import device_lib
  from tensorflow.python.framework import dtypes
  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 24 for calling the SegmentReductionOpsTest obj's underlying member method code with example usage: obj.testUnsortedSegmentSum1DIndices2DDataDisjoint() without return types