code: def locate_intersection_ranges(self, starts, stops):
          starts = asarray_ndim(starts, 1)
          stops = asarray_ndim(stops, 1)
          check_dim0_aligned(starts, stops)
          start_indices = np.searchsorted(self, starts)
          stop_indices = np.searchsorted(self, stops, side='right')
          loc_ranges = start_indices < stop_indices
          loc = np.zeros(self.shape, dtype=np.bool)
          for i, j in zip(start_indices[loc_ranges], stop_indices[loc_ranges]):
              loc[i:j] = True
          return loc, loc_ranges