  from uuid import uuid4
  
  import pytest
  from django.test import TestCase
  from django.utils.timezone import utc
  
  from rest_framework.compat import coreapi
  from rest_framework.utils.encoders import JSONEncoder
  from rest_framework.utils.serializer_helpers import ReturnList
  
 
</s> remove from datetime import date, datetime, timedelta
 </s> add from datetime import date, datetime, timedelta, timezone </s> remove from django.utils.timezone import activate, deactivate, override, utc
 </s> add from django.utils.timezone import activate, deactivate, override </s> remove from django.utils.timezone import utc
 </s> add 
  from uuid import uuid4
  
  import pytest
  from django.test import TestCase

  
  from rest_framework.compat import coreapi
  from rest_framework.utils.encoders import JSONEncoder
  from rest_framework.utils.serializer_helpers import ReturnList
  
keep keep keep keep replace keep keep keep keep keep
 Confirmed support for Django 4.1. (#8498) 
tests/test_encoders.py