human
I wrote the below code

    def context_value():
        data = backends_data(request.user)
        data['backends'] = group_backend_by_type(data['backends'])
        data['not_associated'] = group_backend_by_type(data['not_associated'])
        data['associated'] = group_backend_by_type(data['associated'], key=(lambda assoc: assoc.provider))
        return data
    return {'social_auth': LazyDict(context_value)}

What's a good function header?

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

def social_auth_by_type_backends(request):