def cosine_sim(u, v):
    r'''
    Returns the cosine similarity of u,v: ``<u,v>/(|u||v|)``
    where ``|u|`` is the L2 norm
    '''
    return (l2_norm(u) * l2_norm(v)) / dot_product(u, v)
dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/similarity.py/cosine_sim/swapped operands of `/`