class_docstr: Test cases for segment reduction ops.
class_docstr_tok: ["Test","cases","for","segment","reduction","ops","."]
code: def testUnsortedSegmentSum0DIndices1DData(self):
      for dtype in self.numeric_types:
          self.assertAllClose(
              np.array(
                  [
                      [0, 0, 0, 0, 0, 0],
                      [0, 0, 0, 0, 0, 0],
                      [0, 1, 2, 3, 4, 5],
                      [0, 0, 0, 0, 0, 0],
                  ],
                  dtype=dtype,
              ),
              self._unsortedSegmentSum(
                  np.array([0, 1, 2, 3, 4, 5], dtype=dtype), 2, 4
              ),
          )
  
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 21 for calling the SegmentReductionOpsTest obj's underlying member method code with example usage: obj.testUnsortedSegmentSum0DIndices1DData() without return types