  from django.http.multipartparser import parse_header
  from django.template import Context, RequestContext, loader, Template
  from django.test.client import encode_multipart
  from django.utils import six
  from django.utils.xmlutils import SimplerXMLGenerator
  from django.utils.six.moves import StringIO
  from rest_framework import exceptions, serializers, status, VERSION
  from rest_framework.compat import SHORT_SEPARATORS, LONG_SEPARATORS, yaml
  from rest_framework.exceptions import ParseError
 
</s> remove from rest_framework.compat import (
    SHORT_SEPARATORS, LONG_SEPARATORS, StringIO, smart_text, yaml
)
 </s> add from rest_framework.compat import SHORT_SEPARATORS, LONG_SEPARATORS, yaml </s> remove from rest_framework.compat import etree, yaml, force_text, urlparse
 </s> add from django.utils.encoding import force_text
from rest_framework.compat import etree, yaml, urlparse </s> remove from rest_framework.compat import StringIO
 </s> add 
from django.utils.encoding import smart_text
  from django.http.multipartparser import parse_header
  from django.template import Context, RequestContext, loader, Template
  from django.test.client import encode_multipart
  from django.utils import six
from django.utils.encoding import smart_text
  from django.utils.xmlutils import SimplerXMLGenerator
  from django.utils.six.moves import StringIO
  from rest_framework import exceptions, serializers, status, VERSION
  from rest_framework.compat import SHORT_SEPARATORS, LONG_SEPARATORS, yaml
  from rest_framework.exceptions import ParseError
keep keep keep add keep keep keep keep keep
 Removed custom StringIO, force_text, smart_text compat 
rest_framework/renderers.py