code: def testSegmentIndices(self):
      with tf.compat.v1.Graph().as_default():
          with tf.compat.v1.Session():
              self.assertAllEqual(
                  mappers.segment_indices(
                      tf.constant([0, 0, 1, 2, 2, 2], tf.int64),
                      name="test_name",
                  ).eval(),
                  [0, 1, 0, 0, 1, 2],
              )
              self.assertAllEqual(
                  mappers.segment_indices(
                      tf.constant([], tf.int64)
                  ).eval(),
                  [],
              )
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 2 for calling the MappersTest obj's underlying member method code with example usage: obj.testSegmentIndices() without return types