  from __future__ import unicode_literals
  
  from collections import OrderedDict
  
  from django.utils.encoding import force_text
  
  from rest_framework.compat import MutableMapping, unicode_to_repr
 
</s> remove from rest_framework.compat import MutableMapping, unicode_to_repr
 </s> add from rest_framework.compat import MutableMapping </s> remove from __future__ import absolute_import, unicode_literals

 </s> add  </s> remove # coding: utf-8
from __future__ import unicode_literals

 </s> add  </s> remove # -*- coding: utf-8 -*-
from __future__ import unicode_literals

 </s> add 


  from collections import OrderedDict
  
  from django.utils.encoding import force_text
  
  from rest_framework.compat import MutableMapping, unicode_to_repr
replace replace keep keep keep keep keep
 Dropped Python 2 compatibility. (#6615)

Thanks to Jon Dufresne (@jdufresne) for review.

Co-authored-by: Asif Saif Uddin <auvipy@gmail.com>
Co-authored-by: Rizwan Mansuri <Rizwan@webbyfox.com> 
rest_framework/utils/serializer_helpers.py