def get_most_recent_inds(obj):
    data = numpy.rec.array([(x['_id'], int(x['version']))
                            for x in obj], 
                            names=['_id', 'version'])
    s = data.argsort(order=['_id', 'version'])
    data = data[s]
    recent = (data['_id'][1:] != data['_id'][:-1]).nonzero()[0]
    recent = numpy.append(recent, [1-len(data)])
    return s[recent]
dataset/ETHPy150Open hyperopt/hyperopt/hyperopt/utils.py/get_most_recent_inds/swapped operands of `-`