  
  See schemas.__init__.py for package overview.
  """
  import re
  from collections import Counter, OrderedDict
  from importlib import import_module
  
  from django.conf import settings
  from django.contrib.admindocs.views import simplify_regex
  from django.core.exceptions import PermissionDenied
 
</s> remove import re
import warnings
from collections import OrderedDict
from urllib import parse
 </s> add  </s> remove from rest_framework.compat import (
    URLPattern, URLResolver, coreapi, coreschema, get_original_route
)
 </s> add from rest_framework.compat import URLPattern, URLResolver, get_original_route </s> remove from django.db import models
from django.utils.encoding import force_text, smart_text
from django.utils.translation import gettext_lazy as _

from rest_framework import exceptions, serializers
from rest_framework.compat import coreapi, coreschema, uritemplate
 </s> add 
  
  See schemas.__init__.py for package overview.
  """
  import re

  from importlib import import_module
  
  from django.conf import settings
  from django.contrib.admindocs.views import simplify_regex
  from django.core.exceptions import PermissionDenied
keep keep keep keep replace keep keep keep keep keep
 Added OpenAPI Schema Generation. (#6532)

Co-authored-by: Lucidiot <lucidiot@protonmail.com>
Co-authored-by: dongfangtianyu <dongfangtianyu@qq.com> 
rest_framework/schemas/generators.py