code: def test_segment_intervals(self):
      intervals = hl.Table.parallelize(
          [
              hl.struct(interval=hl.interval(0, 10)),
              hl.struct(interval=hl.interval(20, 50)),
              hl.struct(interval=hl.interval(52, 52)),
          ],
          schema=hl.tstruct(interval=hl.tinterval(hl.tint32)),
          key="interval",
      )
  
      points1 = [-1, 5, 30, 40, 52, 53]
  
      segmented1 = hl.segment_intervals(intervals, points1)
  
      assert segmented1.aggregate(
          hl.agg.collect(segmented1.interval)
          == [
              hl.interval(0, 5),
              hl.interval(5, 10),
              hl.interval(20, 30),
              hl.interval(30, 40),
              hl.interval(40, 50),
              hl.interval(52, 52),
          ]
      )
  
imports: import unittest
  import hail
  from ..helpers import *
label_desc: Use image node_id 18 for calling the Tests obj's underlying member method code with example usage: obj.test_segment_intervals() without return types