  """
  Pagination serializers determine the structure of the output that should
  be used for paginated responses.
  """
  from base64 import b64decode, b64encode
  from collections import OrderedDict, namedtuple
  from urllib import parse
  
 
</s> remove         try:
 </s> add         with contextlib.suppress(KeyError):
import contextlib
  """
  Pagination serializers determine the structure of the output that should
  be used for paginated responses.
  """
import contextlib
  from base64 import b64decode, b64encode
  from collections import OrderedDict, namedtuple
  from urllib import parse
  
keep keep keep add keep keep keep keep
 Refactor: Replace try/except with contextlib.suppress() (#8676) 
rest_framework/pagination.py