def config_to_args(config):
result = []<EOL>for key, value in iteritems(config):<EOL><INDENT>if value is False:<EOL><INDENT>continue<EOL><DEDENT>key = '<STR_LIT>'.format(key.replace('<STR_LIT:_>', '<STR_LIT:->'))<EOL>if isinstance(value, (list, set, tuple)):<EOL><INDENT>for item in value:<EOL><INDENT>result.extend((key, smart_str(item)))<EOL><DEDENT><DEDENT>elif value is not True:<EOL><INDENT>result.extend((key, smart_str(value)))<EOL><DEDENT>else:<EOL><INDENT>result.append(key)<EOL><DEDENT><DEDENT>return tuple(result)<EOL>
Convert config dict to arguments list.

    :param config: Configuration dict.