code: def testSegmentBuilder(
      self,
      segments,
      expected_combined,
      expected_segment_ids,
      start_id=101,
      end_id=102,
      descr=None,
  ):
      for segment_dtype in [dtypes.int32, dtypes.int64]:
          segments_as_tensors = [
              ragged_factory_ops.constant(seg, dtype=segment_dtype)
              for seg in segments
          ]
          (
              actual_combined,
              actual_segment_ids,
          ) = segment_combiner_ops.combine_segments(
              segments_as_tensors,
              constant_op.constant(start_id, segment_dtype),
              end_id,
          )
          self.assertAllEqual(expected_combined, actual_combined)
          self.assertAllEqual(expected_segment_ids, actual_segment_ids)
  
file_path: text/tensorflow_text/python/ops/segment_combiner_ops_test.py
imports: from absl.testing import parameterized
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops.ragged import ragged_factory_ops
  from tensorflow.python.platform import test
  from tensorflow_text.python.ops import segment_combiner_ops
label_desc: Use image node_id 1 for calling the SegmentBuilderTest obj's underlying member method code with example usage: obj.testSegmentBuilder(segments, expected_combined, expected_segment_ids, start_id, end_id, descr) without return types