def METHOD_NAME(self, input, config):
    cleaned_input = input
    ai = config.get('avaliable_input')
    if ai and input not in ai:
        return None
    input_translator = config.get('input_translator')
    if type(input_translator) is dict:
        cleaned_input = input_translator.get(input)
    elif type(input_translator) is str:
        cleaned_input = ast.literal_eval(input_translator.format(input))
    return cleaned_input