@register.simple_tag(takes_context=True)
def associated(context, backend):
    user = context.get('user')
    context['association'] = None
    if user and user.is_authenticated():
        try:
            context['association'] = user.social_auth.filter(
                provider=backend.name
            )[0]
        except __HOLE__:
            pass
    return ''
dataset/ETHPy150Open omab/python-social-auth/examples/django_example/example/app/templatetags/backend_utils.py/associated