def METHOD_NAME(output_param_name, output_param_class):
    return '    for i in "${!' + output_param_name + '[@]}"; do\n        dx-jobutil-add-output ' + output_param_name + ' "${' + output_param_name + '[$i]}" --class=' + output_param_class + '\n    done'