code: def _inherit_parent_kwargs(self, kwargs):
          
  
          if not self.parent or not self._is_dynamic:
              return kwargs
  
          if 'request_fields' not in kwargs:
              # If 'request_fields' isn't explicitly set, pull it from the
              # parent serializer.
              request_fields = self._get_request_fields_from_parent()
              if request_fields is None:
                  # Default to 'id_only' for nested serializers.
                  request_fields = True
              kwargs['request_fields'] = request_fields
  
          if self.embed and kwargs.get('request_fields') is True:
              # If 'embed' then make sure we fetch the full object.
              kwargs['request_fields'] = {}
  
          if hasattr(self.parent, 'sideloading'):
              kwargs['sideloading'] = self.parent.sideloading
  
          if hasattr(self.parent, 'debug'):
              kwargs['debug'] = self.parent.debug
  
          return kwargs
docs: Extract any necessary attributes from parent serializer to
          propagate down to child serializer.