  from rest_framework.decorators import (
      api_view, detail_route, list_route, schema
  )
  from rest_framework.request import Request
  from rest_framework.routers import DefaultRouter
  from rest_framework.schemas import (
      AutoSchema, ManualSchema, SchemaGenerator, get_schema_view
  )
  from rest_framework.schemas.generators import EndpointEnumerator
  from rest_framework.test import APIClient, APIRequestFactory
 
</s> remove from rest_framework import filters, pagination, permissions, serializers
 </s> add from rest_framework import (
    filters, generics, pagination, permissions, serializers
) </s> remove from rest_framework.viewsets import ModelViewSet
 </s> add from rest_framework.viewsets import GenericViewSet, ModelViewSet

from .models import BasicModel </s> remove     target[keys[-1]] = value
 </s> add     try:
        target[keys[-1]] = value
    except TypeError:
        msg = INSERT_INTO_COLLISION_FMT.format(
            value_url=value.url,
            target_url=target.url,
            keys=keys
        )
        raise ValueError(msg)
from rest_framework.routers import DefaultRouter, SimpleRouter
  from rest_framework.decorators import (
      api_view, detail_route, list_route, schema
  )
  from rest_framework.request import Request
from rest_framework.routers import DefaultRouter, SimpleRouter
  from rest_framework.schemas import (
      AutoSchema, ManualSchema, SchemaGenerator, get_schema_view
  )
  from rest_framework.schemas.generators import EndpointEnumerator
  from rest_framework.test import APIClient, APIRequestFactory
keep keep keep keep replace keep keep keep keep keep
 Fix naming collisions in Schema Generation  (#5464)

* Add failing tests for #4704

* Add generic view based test case.

* Adjust insert_into to raise ValueError 
tests/test_schemas.py