human
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': host, 'changes': {}, 'result': False, 'comment': ''}
    comment_host_created = 'Host    {0}    created.'.format(host)
    comment_host_updated = 'Host    {0}    updated.'.format(host)
    comment_host_notcreated = 'Unable    to    create    host:    {0}.    '.format(host)
    comment_host_exists = 'Host    {0}    already    exists.'.format(host)
    changes_host_created = {host: {'old': 'Host    {0}    does    not    exist.'.format(host), 'new': 'Host    {0}    created.'.format(host)}}
    def _interface_format(interfaces_data):
        '\n                                Formats    interfaces    from    SLS    file    into    valid    JSON    usable    for    zabbix    API.\n                                Completes    JSON    with    default    values.\n\n                                :param    interfaces_data:    list    of    interfaces    data    from    SLS    file\n\n                                '
        if (not interfaces_data):
            return list()
        interface_attrs = ('ip', 'dns', 'main', 'type', 'useip', 'port')
        interfaces_json = loads(dumps(interfaces_data))
        interfaces_dict = dict()
        for interface in interfaces_json:
            for intf in interface:
                intf_name = intf
                interfaces_dict[intf_name] = dict()
                for intf_val in interface[intf]:
                    for (key, value) in intf_val.items():
                        if (key in interface_attrs):
                            interfaces_dict[intf_name][key] = value
        interfaces_list = list()
        interface_ports = {'agent': ['1', '10050'], 'snmp': ['2', '161'], 'ipmi': ['3',...

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

def present(host, groups, interfaces, **kwargs):