human
I wrote the below code

    changes = {}
    cpath = get_root_path(path)
    path = os.path.join(cpath, name, 'config')
    ret = {'name': name, 'comment': 'config    for    {0}    up    to    date'.format(name), 'result': True, 'changes': changes}
    profile = get_container_profile(copy.deepcopy(profile))
    kw_overrides = copy.deepcopy(kwargs)
    def select(key, default=None):
        kw_overrides_match = kw_overrides.pop(key, _marker)
        profile_match = profile.pop(key, default)
        if (kw_overrides_match is _marker):
            return profile_match
        return kw_overrides_match
    if ((nic_opts is not None) and (not network_profile)):
        network_profile = DEFAULT_NIC
    if (autostart is not None):
        autostart = select('autostart', autostart)
    else:
        autostart = 'keep'
    if (not utsname):
        utsname = select('utsname', utsname)
    if os.path.exists(path):
        old_chunks = read_conf(path, out_format='commented')
        make_kw = salt.utils.odict.OrderedDict([('utsname', utsname), ('rootfs', rootfs), ('autostart', autostart), ('cpu', cpu), ('gateway', gateway), ('cpuset', cpuset), ('cpushare', cpushare), ('network_profile', network_profile), ('nic_opts', nic_opts), ('bridge', bridge)])
        if memory:
            make_kw['memory'] = memory
        kw = salt.utils.odict.OrderedDict()
        for (key, val) in six.iteritems(make_kw):
            if (val is not None):
                kw[key] = val
        new_cfg = _config_list(conf_tuples=old_chunks, **kw)
        if new_cfg:
            edit_conf(path, out_format='commented', lxc_config=new_cfg)
        chunks = read_conf(path, out_format='commented')
        if (old_chunks != chunks):
            ret['comment'] = '{0}    lxc    config    updated'.format(name)
            if (state(name, path=path) == 'running'):
                cret = reboot(name, path=path)
                ret['result'] = cret['result']
    return ret

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

def reconfigure(name, cpu=None, cpuset=None, cpushare=None, memory=None, profile=None, network_profile=None, nic_opts=None, bridge=None, gateway=None, autostart=None, utsname=None, rootfs=None, path=None, **kwargs):