def detach_events(owner):
    if _owner_map in owner:
        for registration in _owner_map[owner].copy():
            unregister(registration)
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/gameops/event.py/detach_events/swapped operands of `in`