          # Any other supported version does use timezone aware datetimes
          from django.utils.timezone import now as provider_now
  except ImportError:
      oauth2_provider = None
      provider_now = None
  
  # Handle lazy strings
  from django.utils.functional import Promise
  
 
</s> remove from rest_framework.compat import (get_model_name, oauth2_provider)
 </s> add from rest_framework.compat import (get_model_name, oauth2_provider_scope,
                                   oauth2_constants) </s> remove from rest_framework.compat import oauth2_provider
 </s> add from rest_framework.compat import oauth2_provider, oauth2_provider_scope </s> remove             required = oauth2_provider.constants.READ if read_only else oauth2_provider.constants.WRITE
            return oauth2_provider.scope.check(required, request.auth.scope)
 </s> add             required = oauth2_constants.READ if read_only else oauth2_constants.WRITE
            return oauth2_provider_scope.check(required, request.auth.scope) </s> remove         read_only_access_token.scope = oauth2_provider.scope.SCOPE_NAME_DICT['read']
 </s> add         read_only_access_token.scope = oauth2_provider_scope.SCOPE_NAME_DICT['read']
    oauth2_provider_scope = None
    oauth2_constants = None
          # Any other supported version does use timezone aware datetimes
          from django.utils.timezone import now as provider_now
  except ImportError:
      oauth2_provider = None
    oauth2_provider_scope = None
    oauth2_constants = None
      provider_now = None
  
  # Handle lazy strings
  from django.utils.functional import Promise
  
keep keep keep add keep keep keep keep keep
 it's safe to import scope and constants 
rest_framework/compat.py