code: def require_validated(self, req, partial=False, bulk=False):
          
          representations = [
              self.require_representation(req)
          ] if not bulk else self.require_representation(req)
  
          if bulk and not isinstance(representations, list):
              raise ValidationError(
                  "Request payload should represent a list of resources."
              ).as_bad_request()
  
          object_dicts = []
  
          try:
              for representation in representations:
                  object_dict = self.serializer.from_representation(
                      representation
                  )
                  self.serializer.validate(object_dict, partial)
                  object_dicts.append(object_dict)
  
          except DeserializationError as err:
              # when working on Resource we know that we can finally raise
              # bad request exceptions
              raise err.as_bad_request()
  
          except ValidationError as err:
              # ValidationError is a suggested way to validate whole resource
              # so we also are prepared to catch it
              raise err.as_bad_request()
  
          return object_dicts if bulk else object_dicts[0]
docs: Require fully validated internal object dictionary.
  
          Internal object dictionary creation is based on content-decoded
          representation retrieved from request body. Internal object validation
          is performed using resource serializer.
  
          Args:
              req (falcon.Request): request object
              partial (bool): set to True if partially complete representation
                  is accepted (e.g. for patching instead of full update). Missing
                  fields in representation will be skiped.
              bulk (bool): set to True if request payload represents multiple
                  resources instead of single one.
  
          Returns:
              dict: dictionary of fields and values representing internal object.
                  Each value is a result of ``field.from_representation`` call.