  import contextlib
  import copy
  import inspect
  import traceback
  from collections import OrderedDict, defaultdict
  from collections.abc import Mapping
  
  from django.core.exceptions import FieldDoesNotExist, ImproperlyConfigured
  from django.core.exceptions import ValidationError as DjangoValidationError
  from django.db import models
 
</s> remove from collections import OrderedDict
 </s> add  </s> remove from collections import OrderedDict, namedtuple
 </s> add from collections import namedtuple </s> remove from collections import OrderedDict
 </s> add  </s> remove from collections import OrderedDict
 </s> add  </s> remove from collections import Counter, OrderedDict
 </s> add from collections import Counter
from collections import defaultdict
  import contextlib
  import copy
  import inspect
  import traceback
from collections import defaultdict
  from collections.abc import Mapping
  
  from django.core.exceptions import FieldDoesNotExist, ImproperlyConfigured
  from django.core.exceptions import ValidationError as DjangoValidationError
  from django.db import models
keep keep keep keep replace keep keep keep keep keep
 Replaced `OrderedDict` with `dict` (#8964) 
rest_framework/serializers.py