def time_it(search_index, docs, query_index):
    query_docs = []
    for i in query_index:
        query_docs.append(docs[i])
    
    # time how long the query takes
    t0 = time.time()
    neighbors = search_index.search(query_docs)
    delta = t0 - time.time()

    return delta, accuracy(neighbors, query_index).mean()
dataset/ETHPy150Open facebookresearch/pysparnn/examples/pysparnn_utils.py/time_it/swapped operands of `-`