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

    def link_in_col(is_first, field_name, cl):
        if (cl.list_display_links is None):
            return False
        if (is_first and (not cl.list_display_links)):
            return True
        return (field_name in cl.list_display_links)
    first = True
    pk = cl.lookup_opts.pk.attname
    for (field_index, field_name) in enumerate(cl.list_display):
        empty_value_display = cl.model_admin.get_empty_value_display()
        row_classes = [('field-%s' % _coerce_field_name(field_name, field_index))]
        try:
            (f, attr, value) = lookup_field(field_name, result, cl.model_admin)
        except ObjectDoesNotExist:
            result_repr = empty_value_display
        else:
            empty_value_display = getattr(attr, 'empty_value_display', empty_value_display)
            if ((f is None) or f.auto_created):
                if (field_name == 'action_checkbox'):
                    row_classes = ['action-checkbox']
                boolean = getattr(attr, 'boolean', False)
                result_repr = display_for_value(value, empty_value_display, boolean)
                if isinstance(value, (datetime.date, datetime.time)):
                    row_classes.append('nowrap')
            else:
                if isinstance(f.remote_field, models.ManyToOneRel):
                    field_val = getattr(result, f.name)
                    if (field_val is None):
                        result_repr = empty_value_display
                    else:
                        result_repr = field_val
                else:
                    result_repr = display_for_field(value, f, empty_value_display)
                if isinstance(f, (models.DateField, models.TimeField, models.ForeignKey)):
                    row_classes.append('nowrap')
        if (str(result_repr) == ''):
            result_repr = mark_safe('&nbsp;')
        row_class = mark_safe(('    class="%s"' % '    '.join(row_classes)))
        if link_in_col(first, field_name, cl):
            table_tag = ('th' if first else 'td')
       ...

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

def items_for_result(cl, result, form):