              new_links = schema_links(sub_section, sec_key=sub_section_key)
              links.update(new_links)
  
      if sec_key is not None:
          new_links = OrderedDict()
          for link_key, link in links.items():
              new_key = NESTED_FORMAT % (sec_key, link_key)
              new_links.update({new_key: link})
          return new_links
  
 
</s> remove         errors = OrderedDict()
 </s> add         errors = {} </s> remove     fields = OrderedDict()
 </s> add     fields = {} </s> remove         by_name = OrderedDict((f.name, f) for f in fields)
 </s> add         by_name = {f.name: f for f in fields} </s> remove         response_headers = OrderedDict(sorted(response.items()))
 </s> add         response_headers = dict(sorted(response.items())) </s> remove         defaults = OrderedDict()
 </s> add         defaults = {}
        new_links = {}
              new_links = schema_links(sub_section, sec_key=sub_section_key)
              links.update(new_links)
  
      if sec_key is not None:
        new_links = {}
          for link_key, link in links.items():
              new_key = NESTED_FORMAT % (sec_key, link_key)
              new_links.update({new_key: link})
          return new_links
  
keep keep keep keep replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/templatetags/rest_framework.py