def get_buckets(sizes, num_buckets):
    buckets = np.unique(np.percentile(sizes, np.linspace(0, 100, (num_buckets + 1)), interpolation='lower')[1:])
    return buckets
def get_buckets(sizes, num_buckets):
    buckets = np.unique(np.percentile(sizes, np.linspace(0, 100, (num_buckets + 1)), interpolation='lower')[1:])
    return buckets