human
Here's a good function header given the following:
I wrote the below code

    connection_args = {}
    if ('_connection_user' in kwargs):
        connection_args['_connection_user'] = kwargs['_connection_user']
    if ('_connection_password' in kwargs):
        connection_args['_connection_password'] = kwargs['_connection_password']
    if ('_connection_url' in kwargs):
        connection_args['_connection_url'] = kwargs['_connection_url']
    ret = {'name': alias, 'changes': {}, 'result': False, 'comment': ''}
    comment_user_created = 'User    {0}    created.'.format(alias)
    comment_user_updated = 'User    {0}    updated.'.format(alias)
    comment_user_notcreated = 'Unable    to    create    user:    {0}.    '.format(alias)
    comment_user_exists = 'User    {0}    already    exists.'.format(alias)
    changes_user_created = {alias: {'old': 'User    {0}    does    not    exist.'.format(alias), 'new': 'User    {0}    created.'.format(alias)}}
    def _media_format(medias_data):
        '\n                                Formats    medias    from    SLS    file    into    valid    JSON    usable    for    zabbix    API.\n                                Completes    JSON    with    default    values.\n\n                                :param    medias_data:    list    of    media    data    from    SLS    file\n\n                                '
        if (not medias_data):
            return list()
        medias_json = loads(dumps(medias_data))
        medias_attr = ('active', 'mediatype', 'period', 'severity', 'sendto')
        media_type = {'mail': 1, 'jabber': 2, 'sms': 3}
        media_severities = ('D', 'H', 'A', 'W', 'I', 'N')
        medias_dict = dict()
        for media in medias_json:
            for med in media:
                medias_dict[med] = dict()
                for medattr in media[med]:
                    for (key, value) in medattr.items():
                        if (key in medias_attr):
                            medias_dict[med][key] = value
        medias_list = list()
        for (key, value) in medias_dict.items():
            active = ('0' if...

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

def present(alias, passwd, usrgrps, medias, password_reset=False, **kwargs):