def save_bloguser_extra_profile(backend, user, response, *args, **kwargs):
    '\n    see more:\n        http://python-social-auth.readthedocs.io/en/latest/use_cases.html#retrieve-google-friends\n        http://python-social-auth.readthedocs.io/en/latest/pipeline.html\n    :param backend:\n    :param user:\n    :param response:\n    :param args:\n    :param kwargs:\n    :return:\n    '
    if (backend.name == 'github'):
        image_url = response.get('avatar_url')
        image_file = get_image_from_url(image_url)
        if (image_file is not None):
            avatar_name = ('avatar' + uuid4().hex[:16])
            if (user.image == 'bloguser/avatar.png'):
                user.image.save(avatar_name, image_file)
        user.save()
see more:
    http://python-social-auth.readthedocs.io/en/latest/use_cases.html#retrieve-google-friends
    http://python-social-auth.readthedocs.io/en/latest/pipeline.html
:param backend:
:param user:
:param response:
:param args:
:param kwargs:
:return:
def save_bloguser_extra_profile(backend, user, response, *args, **kwargs):
    '\n    see more:\n        http://python-social-auth.readthedocs.io/en/latest/use_cases.html#retrieve-google-friends\n        http://python-social-auth.readthedocs.io/en/latest/pipeline.html\n    :param backend:\n    :param user:\n    :param response:\n    :param args:\n    :param kwargs:\n    :return:\n    '
    if (backend.name == 'github'):
        image_url = response.get('avatar_url')
        image_file = get_image_from_url(image_url)
        if (image_file is not None):
            avatar_name = ('avatar' + uuid4().hex[:16])
            if (user.image == 'bloguser/avatar.png'):
                user.image.save(avatar_name, image_file)
        user.save()