def METHOD_NAME(self, index, output, config):
    output_translator = config.get('output_translator')
    if type(output_translator) is dict:
        output = output_translator.get(output)
    elif type(output_translator) is str:
        output = ast.literal_eval(output_translator.format(output))
    elif type(output_translator) is list:
        output = ast.literal_eval(output_translator[index].format(output))
    return output