  import warnings
  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
 
</s> remove from rest_framework.compat import oauth2_provider, oauth2_provider_models
 </s> add from rest_framework.compat import oauth2_provider, oauth2_provider_models, oauth2_provider_scope
from rest_framework.compat import oauth2_provider_scope

  import warnings
  
  SAFE_METHODS = ['GET', 'HEAD', 'OPTIONS']
  
from rest_framework.compat import oauth2_provider_scope

  
  class BasePermission(object):
      """
      A base class from which all permission classes should inherit.
keep keep keep add keep keep keep keep
 Add TokenHasReadWriteScope class for permissions based on scopes 
rest_framework/permissions.py