  from collections import namedtuple
  from rest_framework.compat import clean_manytomany_helptext
  from rest_framework.fields import empty, set_value, Field, SkipField
  from rest_framework.settings import api_settings
  from rest_framework.utils import html, modelinfo, representation
  import copy
  
  # Note: We do the following so that users of the framework can use this style:
  #
  #     example_field = serializers.CharField(...)
 
</s> remove             self.label = self.field_name.replace('_', ' ').capitalize()
 </s> add             self.label = field_name_to_label(self.field_name) </s> remove         info = modelinfo.get_field_info(self.opts.model)
 </s> add         info = model_meta.get_field_info(self.opts.model) </s> remove         class NestedModelSerializer(ModelSerializer):  # Not right!
 </s> add         class NestedModelSerializer(ModelSerializer): </s> remove     #     print repr(TestSerializer()) </s> add 
from rest_framework.utils import html, model_meta, representation
  from collections import namedtuple
  from rest_framework.compat import clean_manytomany_helptext
  from rest_framework.fields import empty, set_value, Field, SkipField
  from rest_framework.settings import api_settings
from rest_framework.utils import html, model_meta, representation
  import copy
  
  # Note: We do the following so that users of the framework can use this style:
  #
  #     example_field = serializers.CharField(...)
keep keep keep keep replace keep keep keep keep keep
 Drop label from serializer fields when not needed 
rest_framework/serializers.py