code: def locate_ranges(self, starts, stops, strict=True):
          
  
          loc, found = self.locate_intersection_ranges(starts, stops)
  
          if strict and np.any(~found):
              raise KeyError(starts[~found], stops[~found])
  
          return loc
docs: Locate items within the given ranges.
  
          Parameters
          ----------
          starts : array_like, int
              Range start values.
          stops : array_like, int
              Range stop values.
          strict : bool, optional
              If True, raise KeyError if any ranges contain no entries.
  
          Returns
          -------
          loc : ndarray, bool
              Boolean array with location of entries found.
  
          Examples
          --------
  
          >>> import allel
          >>> import numpy as np
          >>> idx = allel.SortedIndex([3, 6, 11, 20, 35])
          >>> ranges = np.array([[0, 2], [6, 17], [12, 15], [31, 35],
          ...                    [100, 120]])
          >>> starts = ranges[:, 0]
          >>> stops = ranges[:, 1]
          >>> loc = idx.locate_ranges(starts, stops, strict=False)
          >>> loc
          array([False,  True,  True, False,  True])
          >>> idx[loc]
          <SortedIndex shape=(3,) dtype=int64>
          [6, 11, 35]