  from django.utils.datastructures import MultiValueDict
  from django.utils.datastructures import MergeDict as DjangoMergeDict
  from rest_framework import HTTP_HEADER_ENCODING
  from rest_framework import exceptions
  from rest_framework.compat import BytesIO
  from rest_framework.settings import api_settings
  import warnings
  
  
  def is_form_media_type(media_type):
 
</s> remove from rest_framework.compat import smart_text, HttpResponseBase, View
 </s> add from rest_framework.compat import HttpResponseBase, View </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
  from django.utils.datastructures import MultiValueDict
  from django.utils.datastructures import MergeDict as DjangoMergeDict
  from rest_framework import HTTP_HEADER_ENCODING
  from rest_framework import exceptions

  from rest_framework.settings import api_settings
  import warnings
  
  
  def is_form_media_type(media_type):
keep keep keep keep replace keep keep keep keep keep
 Removed custom StringIO, force_text, smart_text compat 
rest_framework/request.py