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
    mptt_indent_field = getattr(cl.model_admin, u'mptt_indent_field', None)
    if (not mptt_indent_field):
        for field_name in cl.list_display:
            try:
                f = cl.lookup_opts.get_field(field_name)
            except models.FieldDoesNotExist:
                if ((mptt_indent_field is None) and (field_name != u'action_checkbox')):
                    mptt_indent_field = field_name
            else:
                mptt_indent_field = field_name
                break
    mptt_level_indent = getattr(cl.model_admin, u'mptt_level_indent', MPTT_ADMIN_LEVEL_INDENT)
    for (field_index, field_name) in enumerate(cl.list_display):
        empty_value_display = get_empty_value_display(cl)
        row_classes = [(u'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, u'empty_value_display', empty_value_display)
            if ((f is None) or f.auto_created):
                if (field_name == u'action_checkbox'):
                    row_classes = [u'action-checkbox']
                allow_tags = getattr(attr, u'allow_tags', False)
                boolean = getattr(attr, u'boolean', False)
                try:
                    result_repr = display_for_value(value, empty_value_display, boolean)
                except TypeError:
                    result_repr = display_for_value(value, boolean)
                if allow_tags:
                    warnings.warn(u'Deprecated    allow_tags    attribute    used    on    field    {}.    Use   ...

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

def mptt_items_for_result(cl, result, form):