old_contents: from rest_framework_jwt.settings import api_settings
  
  jwt_payload_handler = api_settings.JWT_PAYLOAD_HANDLER
  jwt_encode_handler = api_settings.JWT_ENCODE_HANDLER
  
  
  class TokenStrategy:
      @classmethod
      def obtain(cls, user):
          payload = jwt_payload_handler(user)
          return {
              'token': jwt_encode_handler(payload),
              'user': user
          }
  
new_contents: class TokenStrategy:
      @classmethod
      def obtain(cls, user):
          from rest_framework_jwt.settings import api_settings
          payload = api_settings.JWT_PAYLOAD_HANDLER(user)
          return {
              'token': api_settings.JWT_ENCODE_HANDLER(payload),
              'user': user
          }
  
subject: Move drf-jwt in token strategy to local scope