  from collections import OrderedDict
  
  from django.utils.encoding import force_text
  
  from rest_framework.compat import MutableMapping
  from rest_framework.utils import json
  
  
  class ReturnDict(OrderedDict):
      """
 
</s> remove from collections.abc import Mapping, MutableMapping  # noqa
 </s> add  </s> remove from rest_framework.compat import Mapping, postgres_fields
 </s> add from rest_framework.compat import postgres_fields
  from collections import OrderedDict
  
  from django.utils.encoding import force_text
  

  from rest_framework.utils import json
  
  
  class ReturnDict(OrderedDict):
      """
keep keep keep keep replace keep keep keep keep keep
 Remove unnecessary compatibility shims from rest_framework/compat.py (#6631)

For Python 3, collections.abc.Mapping and collections.abc.MutableMapping
are always available from the stdlib. 
rest_framework/utils/serializer_helpers.py