#NEWLINE# def _build_spark_args( args , release_label , region ) : #NEWLINE# #INDENT# args_list = [ ] #NEWLINE# if release_label : #NEWLINE# #INDENT# args_list . append ( constants . SPARK_SUBMIT_COMMAND ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# args_list . append ( constants . SPARK_SUBMIT_PATH ) #NEWLINE# #UNINDENT# args_list += args #NEWLINE# return release_label