def quoting_nsarg(nsarg_value):
quoted = re.findall(r'<STR_LIT>', nsarg_value)<EOL>if re.search(<EOL>r"<STR_LIT>", nsarg_value<EOL>):  <EOL><INDENT>if quoted:<EOL><INDENT>return nsarg_value<EOL><DEDENT>else:<EOL><INDENT>return f'<STR_LIT>'<EOL><DEDENT><DEDENT>else:<EOL><INDENT>if quoted:<EOL><INDENT>return quoted[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>return nsarg_value<EOL><DEDENT><DEDENT>
Quoting nsargs

    If needs quotes (only if it contains whitespace, comma or ')' ), make sure
        it is quoted, else don't add them.