  from collections import OrderedDict
  from urllib import parse
  from weakref import WeakKeyDictionary
  
  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
  from rest_framework.settings import api_settings
  from rest_framework.utils import formatting
  
  from .utils import is_list_view
  
 
</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 .utils import is_list_view

 </s> add 
  from collections import OrderedDict
  from urllib import parse
  from weakref import WeakKeyDictionary
  






  from rest_framework.settings import api_settings
  from rest_framework.utils import formatting
  
  from .utils import is_list_view
  
keep keep keep keep replace replace replace replace replace 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/inspectors.py