                  values[key] = '' if (value is None or value is False) else force_text(value)
          return self.__class__(self._field, values, self.errors, self._prefix)
  
  
  class BindingDict(collections.MutableMapping):
      """
      This dict-like object is used to store fields on a serializer.
  
      This ensures that whenever fields are added to the serializer we call
      `field.bind()` so that the `field_name` and `parent` attributes
 
</s> remove             if isinstance(instance, collections.Mapping):
 </s> add             if isinstance(instance, Mapping): </s> remove         if isinstance(data, type('')) or isinstance(data, collections.Mapping) or not hasattr(data, '__iter__'):
 </s> add         if isinstance(data, type('')) or isinstance(data, Mapping) or not hasattr(data, '__iter__'): </s> remove from rest_framework.compat import unicode_to_repr
 </s> add from rest_framework.compat import MutableMapping, unicode_to_repr </s> remove import collections
 </s> add  </s> remove     MaxLengthValidator, MaxValueValidator, MinLengthValidator,
 </s> add     Mapping, MaxLengthValidator, MaxValueValidator, MinLengthValidator,
class BindingDict(MutableMapping):
                  values[key] = '' if (value is None or value is False) else force_text(value)
          return self.__class__(self._field, values, self.errors, self._prefix)
  
  
class BindingDict(MutableMapping):
      """
      This dict-like object is used to store fields on a serializer.
  
      This ensures that whenever fields are added to the serializer we call
      `field.bind()` so that the `field_name` and `parent` attributes
keep keep keep keep replace keep keep keep keep keep
 Fix DeprecationWarning when accessing collections.abc classes via collections (#6268)

* Use compat version of collections.abc.Mapping

Since the Mapping class will no longer be available to import directly
from the collections module in Python 3.8, we should use the
compatibility helper introduced in #6154 in the fields module.

* Alias and use compat version of collections.abc.MutableMapping

Since the MutableMapping class will no longer be available to import
directly from the collections module in Python 3.8, we should create an
alias for it in the compat module and use that instead. 
rest_framework/utils/serializer_helpers.py