def _parse_new_contract_args(*args, **kwargs):
<EOL>if (not args) and (not kwargs):<EOL><INDENT>return [<EOL>{<EOL>"<STR_LIT:name>": "<STR_LIT>",<EOL>"<STR_LIT>": "<STR_LIT>",<EOL>"<STR_LIT:type>": RuntimeError,<EOL>}<EOL>]<EOL><DEDENT>if (len(args) > <NUM_LIT:1>) or ((len(args) == <NUM_LIT:1>) and kwargs):<EOL><INDENT>raise TypeError("<STR_LIT>")<EOL><DEDENT>if len(args) == <NUM_LIT:1>:<EOL><INDENT>return [dict([("<STR_LIT:name>", "<STR_LIT:default>")] + list(_format_arg(args[<NUM_LIT:0>]).items()))]<EOL><DEDENT>return [<EOL>dict([("<STR_LIT:name>", name)] + list(_format_arg(kwargs[name]).items()))<EOL>for name in sorted(list(kwargs.keys()))<EOL>]<EOL>
Parse argument for new_contract() function.