  from django.utils.datastructures import MultiValueDict
  from rest_framework import HTTP_HEADER_ENCODING
  from rest_framework import exceptions
  from rest_framework.settings import api_settings
  import sys
  import warnings
  
  
  def is_form_media_type(media_type):
      """
      Return True if the media type is a valid form media type.
 
</s> remove from rest_framework import HTTP_HEADER_ENCODING
from rest_framework import exceptions
 </s> add from rest_framework import exceptions, HTTP_HEADER_ENCODING </s> remove from django.utils import six
 </s> add  </s> remove from rest_framework.utils import formatting
import inspect
import warnings
 </s> add from rest_framework.compat import HttpResponseBase, View, set_rollback
  from django.utils.datastructures import MultiValueDict
  from rest_framework import HTTP_HEADER_ENCODING
  from rest_framework import exceptions
  from rest_framework.settings import api_settings


  
  
  def is_form_media_type(media_type):
      """
      Return True if the media type is a valid form media type.
keep keep keep keep replace replace keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/request.py