human
I wrote the below code

    def _ipnet_belongs(net):
        u'\n                                Helper    to    tell    if    a    IP    address    or    network    belong    to    a    certain    network.\n                                '
        if (net == u'0.0.0.0/0'):
            return False
        net_obj = _get_network_obj(net)
        if (not net_obj):
            return False
        return ((ipnet in net_obj) or (net_obj in ipnet))
    labels = {u'device': u'Device', u'interface': u'Interface', u'interface_description': u'Interface    Description', u'is_up': u'UP', u'is_enabled': u'Enabled', u'speed': u'Speed    [Mbps]', u'mac': u'MAC    Address', u'ips': u'IP    Addresses'}
    rows = []
    net_runner_opts = _get_net_runner_opts()
    if pattern:
        title = u'Pattern    "{0}"    found    in    the    description    of    the    following    interfaces'.format(pattern)
    if (not title):
        title = u'Details'
        if interface:
            title += u'    for    interface    {0}'.format(interface)
        else:
            title += u'    for    all    interfaces'
        if device:
            title += u'    on    device    {0}'.format(device)
        if ipnet:
            title += u'    that    include    network    {net}'.format(net=str(ipnet))
            if best:
                title += u'    -    only    best    match    returned'
    all_interfaces = _get_mine(u'net.interfaces')
    all_ipaddrs = _get_mine(u'net.ipaddrs')
    if device:
        all_interfaces = {device: all_interfaces.get(device, {})}
    if (ipnet and (not isinstance(ipnet, IPNetwork))):
        ipnet = _get_network_obj(ipnet)
    best_row = {}
    best_net_match = None
    for (device, net_interfaces_out) in six.iteritems(all_interfaces):
        if (not net_interfaces_out):
            continue
        if (not net_interfaces_out.get(u'result', False)):
            continue
        selected_device_interfaces = net_interfaces_out.get(u'out', {})
        if interface:
            selected_device_interfaces = {interface:...

What's a good function header?

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

def interfaces(device=None, interface=None, title=None, pattern=None, ipnet=None, best=True, display=_DEFAULT_DISPLAY):