def METHOD_NAME(self, config: dict) -> dict:
    try:
        effect_cls = self._effects[config['type']]
        del effect_cls
    except (KeyError, TypeError):
        try:
            raise ValueError(
                '"{}" is not a valid MPF widget effect type. Did you '
                'misspell it, or forget to enable it in the "mpf-mc: '
                'mpf_effect_modules" section of your machine config?'.format(
                    config['type']))
        except (KeyError, TypeError):
            raise ValueError("Invalid widget effects config: {}".format(config))
    self.mc.config_validator.validate_config('effects:{}'.format(
        config['type']).lower(), config, base_spec='effects:common')
    return config