def mode_setter(_, value):
    if (value != 'poke'):
        raise ValueError(f"cannot set mode to 'poke'.")
def mode_setter(_, value):
    if (value != 'poke'):
        raise ValueError(f"cannot set mode to 'poke'.")