<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def fetch_friends(self, user):
 """ fethces friends from VKontakte using the access_token fethched by django-social-auth. Note - user isn't a user - it's a UserSocialAuth if using social auth, or a SocialAccount if using allauth Returns: collection of friend objects fetched from VKontakte """


        if USING_ALLAUTH:
            raise NotImplementedError("VKontakte support is not implemented for django-allauth")
            #social_app = SocialApp.objects.get_current('vkontakte')
            #oauth_token = SocialToken.objects.get(account=user, app=social_app).token
        else:
            social_auth_backend = VKOAuth2Backend()

            # Get the access_token
            tokens = social_auth_backend.tokens(user)
            oauth_token = tokens['access_token']

        api = vkontakte.API(token=oauth_token)
        return api.get("friends.get")