def eqva(a1, a2):
    """
    modified np.array_equal. considers a1 and a2
    equal when there is 1 difference.
    """
    a1.sort()
    a2.sort()
    count = 0
    a1_, a2_ = a1, a2
    if len(a1) > len(a2):
        a1_ = a2
        a2_ = a1

    for s in a1:
        if not a2 in s:
            count += 1

    return count
dataset/ETHPy150Open inpho/vsm/vsm/extensions/editions.py/eqva/swapped operands of `in`