  from django import template
  from django.utils import six
  from django.utils.html import escape
  from django.utils.html import smart_urlquote
  from rest_framework.renderers import HTMLFormRenderer
  from rest_framework.utils.urls import replace_query_param
  
  
  register = template.Library()
  
 
</s> remove import re
 </s> add  </s> remove from django.utils.encoding import iri_to_uri, force_text
 </s> add  </s> remove from django.utils.safestring import SafeData, mark_safe
 </s> add  </s> remove from django.core.urlresolvers import reverse, NoReverseMatch
 </s> add 
from django.utils.safestring import SafeData, mark_safe
from django.utils.encoding import iri_to_uri, force_text
from django.core.urlresolvers import reverse, NoReverseMatch

  from django import template
  from django.utils import six
  from django.utils.html import escape
  from django.utils.html import smart_urlquote
from django.utils.safestring import SafeData, mark_safe
from django.utils.encoding import iri_to_uri, force_text
from django.core.urlresolvers import reverse, NoReverseMatch

  from rest_framework.renderers import HTMLFormRenderer
  from rest_framework.utils.urls import replace_query_param
  
  
  register = template.Library()
  
keep keep keep add keep keep keep keep keep keep
 Cleanup import following PEP 8 style guide 
rest_framework/templatetags/rest_framework.py