def METHOD_NAME(self, key, callback, **variable_format_dict):
    if key not in self._KEY_VARIABLE:
        raise ValueError('The key "{}" is not present in {}. Available keys are {}.'.format(
            key, self.__class__.__name__, list(self._KEY_VARIABLE.keys())))
    callback.METHOD_NAME(
        self._KEY_VARIABLE[key].format(**variable_format_dict))