human
I wrote the below code

    arg_map = {}
    def sim_callback(option, opt_str, value, parser):
        dest = option.dest
        arg_map.setdefault(dest, [])
        arg_map[dest].append(opt_str)
        if isinstance(value, string_types):
            arg_map[dest].append(value)
        elif value:
            arg_map[dest].extend(value)
    sim_parser = OptionParser(add_help_option=False)
    for option in option_parser._get_all_options():
        sim_parser.add_option(dest=option.dest, nargs=option.nargs, action='callback', type=('string' if option.type else None), callback=sim_callback, *(option._short_opts + option._long_opts))
    sim_parser.parse_args(args)
    return arg_map

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def parse_and_save_options(option_parser, args):