<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def enableEffect(self, name, **kwargs):
 """Enable an effect in the KezMenu."""

        if name not in VALID_EFFECTS:
            raise KeyError("KezMenu doesn't know an effect of type %s" % name)
        self.__getattribute__(
            '_effectinit_{}'.format(name.replace("-", "_"))
        )(name, **kwargs)