@testing.numpy_cupy_array_equal()
def test_sorter(self, xp):
    x = testing.shaped_arange((12,), xp, xp.float64)
    bins = xp.array([10, 4, 2, 1, 8])
    sorter = xp.array([3, 2, 1, 4, 0])
    y = xp.searchsorted(bins, x, sorter=sorter)
    return (y,)
@testing.numpy_cupy_array_equal()
def test_sorter(self, xp):
    x = testing.shaped_arange((12,), xp, xp.float64)
    bins = xp.array([10, 4, 2, 1, 8])
    sorter = xp.array([3, 2, 1, 4, 0])
    y = xp.searchsorted(bins, x, sorter=sorter)
    return (y,)