      """
      authenticated_users_only = False
  
  
  class TokenHasReadWriteScope(BasePermission):
      """
      The request is authenticated as a user and the token used has the right scope
      """
  
      def has_permission(self, request, view):
 
</s> remove from rest_framework.compat import oauth2_provider_scope, oauth2_constants
 </s> add from rest_framework.compat import oauth2_provider_scope, oauth2_constants, guardian
class DjangoObjectLevelModelPermissions(DjangoModelPermissions):
    def __init__(self):
        assert guardian, 'Using DjangoObjectLevelModelPermissions, but guardian is not installed'


      """
      authenticated_users_only = False
  
  
class DjangoObjectLevelModelPermissions(DjangoModelPermissions):
    def __init__(self):
        assert guardian, 'Using DjangoObjectLevelModelPermissions, but guardian is not installed'


  class TokenHasReadWriteScope(BasePermission):
      """
      The request is authenticated as a user and the token used has the right scope
      """
  
      def has_permission(self, request, view):
keep keep keep add keep keep keep keep keep keep
 added guardian as optional requirement, stubbed out object-level permission class 
rest_framework/permissions.py