human
I wrote the below code

    def dictitem(s):
        t = s.split(u'=', 1)
        if (len(t) > 1):
            return (t[0].lower(), t[1])
        else:
            return (t[0].lower(), True)
    def dictvalue(t):
        if (t[1] is True):
            return t[0]
        else:
            return (u'%s=%s' % (t[0], t[1]))
    if response.has_header(u'Cache-Control'):
        cc = cc_delim_re.split(response[u'Cache-Control'])
        cc = dict([dictitem(el) for el in cc])
    else:
        cc = {}
    if ((u'max-age' in cc) and (u'max_age' in kwargs)):
        kwargs[u'max_age'] = min(int(cc[u'max-age']), kwargs[u'max_age'])
    if ((u'private' in cc) and (u'public' in kwargs)):
        del cc[u'private']
    elif ((u'public' in cc) and (u'private' in kwargs)):
        del cc[u'public']
    for (k, v) in kwargs.items():
        cc[k.replace(u'_', u'-')] = v
    cc = u',    '.join([dictvalue(el) for el in cc.items()])
    response[u'Cache-Control'] = cc

What's a good function header?

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

def patch_cache_control(response, **kwargs):