  import re
  from collections import OrderedDict
  
  import pytest
  from django.conf.urls import include, url
  from django.core.cache import cache
  from django.db import models
  from django.http.request import HttpRequest
 
</s> remove from rest_framework.compat import Mapping
 </s> add 
from collections.abc import MutableMapping
  import re
  from collections import OrderedDict
from collections.abc import MutableMapping
  
  import pytest
  from django.conf.urls import include, url
  from django.core.cache import cache
  from django.db import models
  from django.http.request import HttpRequest
keep add keep 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. 
tests/test_renderers.py