Example of how to use numpy.searchsorted