<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def intersect_ranges(self, starts, stops):
 """Intersect with a set of ranges. Parameters starts : array_like, int Range start values. stops : array_like, int Range stop values. Returns ------- idx : SortedIndex Examples -------- <SortedIndex shape=(3,) dtype=int64> [6, 11, 35] """


        loc = self.locate_ranges(starts, stops, strict=False)
        return self.compress(loc, axis=0)