human
I wrote the below code

    def parse_field(field):
        field = field.split(u'.')
        obj = context.get(field.pop(0), None)
        attr = field.pop()
        while field:
            obj = getattr(obj, field.pop(0))
            if callable(obj):
                obj = obj()
        return (obj, attr)
    fields = [parse_field(f) for f in token.split_contents()[1:]]
    if fields:
        fields = [f for f in fields if ((len(f) == 2) and (f[0] is fields[0][0]))]
    if (not parsed.strip()):
        try:
            parsed = u''.join([str(getattr(*field)) for field in fields])
        except AttributeError:
            pass
    if (settings.INLINE_EDITING_ENABLED and fields and (u'request' in context)):
        obj = fields[0][0]
        if (isinstance(obj, Model) and is_editable(obj, context[u'request'])):
            field_names = u','.join([f[1] for f in fields])
            context[u'editable_form'] = get_edit_form(obj, field_names)
            context[u'original'] = parsed
            t = get_template(u'includes/editable_form.html')
            return t.render(context.flatten())
    return parsed

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

@register.to_end_tag
def editable(parsed, context, token):