def _get_args_kwargs(options, module):
if module == '<STR_LIT>':<EOL><INDENT>options = _emp_extra_options(options)<EOL><DEDENT>arg_names, kw_names = _arg_kwarg_lists(module, options['<STR_LIT>'])<EOL>args = []<EOL>for arg_name in arg_names:<EOL><INDENT>if arg_name == '<STR_LIT>':  <EOL><INDENT>args.append(options['<STR_LIT>'])<EOL>continue<EOL><DEDENT>if arg_name == '<STR_LIT>':  <EOL><INDENT>continue<EOL><DEDENT>if arg_name == '<STR_LIT:k>':  <EOL><INDENT>arg_name = '<STR_LIT:x>'<EOL><DEDENT>try:<EOL><INDENT>exec('<STR_LIT>' % options[arg_name])<EOL><DEDENT>except SyntaxError: <EOL><INDENT>args.append(options[arg_name])<EOL><DEDENT>except:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>% arg_name)<EOL><DEDENT><DEDENT>kwargs = {}<EOL>for kw_name in kw_names:<EOL><INDENT>if kw_name in list(options.keys()):  <EOL><INDENT>try:<EOL><INDENT>exec('<STR_LIT>' % options[kw_name])<EOL><DEDENT>except SyntaxError:  <EOL><INDENT>kwargs[kw_name] = options[kw_name]<EOL><DEDENT>except:<EOL><INDENT>raise ValueError("<STR_LIT>"<EOL>% kw_name)<EOL><DEDENT><DEDENT><DEDENT>return args, kwargs<EOL>
Given an options (including analysis), and module, extract args and kwargs