  from django.utils.six.moves.urllib.parse import urlparse as _urlparse
  from django.utils import six
  import django
  import inspect
  
  
  def unicode_repr(instance):
      # Get the repr of an instance, but ensure it is a unicode string
      # on both python 3 (already the case) and 2 (not the case).
      if six.PY2:
 
</s> remove 
 </s> add from rest_framework.compat import importlib </s> remove try:
    import importlib
except ImportError:
    from django.utils import importlib
 </s> add 
try:
    import importlib
except ImportError:
    from django.utils import importlib
  from django.utils.six.moves.urllib.parse import urlparse as _urlparse
  from django.utils import six
  import django
  import inspect
try:
    import importlib
except ImportError:
    from django.utils import importlib
  
  def unicode_repr(instance):
      # Get the repr of an instance, but ensure it is a unicode string
      # on both python 3 (already the case) and 2 (not the case).
      if six.PY2:
keep keep keep keep replace keep keep keep keep keep
 Move `importlib` fallback into compat. 
rest_framework/compat.py