      get_url_kwargs, get_field_kwargs,
      get_relation_kwargs, get_nested_relation_kwargs,
      ClassLookupDict
  )
  from rest_framework.validators import UniqueTogetherValidator
  import copy
  import inspect
  import warnings
  
  # Note: We do the following so that users of the framework can use this style:
 
</s> remove from django.core.exceptions import ValidationError
 </s> add  </s> remove         instance = getattr(field.parent, 'instance', None)
 </s> add         self.instance = getattr(serializer_field.parent, 'instance', None)
from rest_framework.validators import (
    UniqueForDateValidator, UniqueTogetherValidator
)
      get_url_kwargs, get_field_kwargs,
      get_relation_kwargs, get_nested_relation_kwargs,
      ClassLookupDict
  )
from rest_framework.validators import (
    UniqueForDateValidator, UniqueTogetherValidator
)
  import copy
  import inspect
  import warnings
  
  # Note: We do the following so that users of the framework can use this style:
keep keep keep keep replace keep keep keep keep keep
 First pass at unique_for_date, unique_for_month, unique_for_year 
rest_framework/serializers.py