def long_to_dpid(l):
    if type(l) == str and str in ":":
        return l
    s = "%016x" % long(l)
    m = re.findall("\w\w", s)
    return ":".join(m)
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/ethzlegacyoptinstuff/legacyoptin/flowspaceutils.py/long_to_dpid/swapped operands of `in`