code: def marshal_with(schema, code='default', description='', inherit=None, apply=None):
      
      def wrapper(func):
          options = {
              code: {
                  'schema': schema or {},
                  'description': description,
              },
          }
          annotate(func, 'schemas', [options], inherit=inherit, apply=apply)
          return activate(func)
      return wrapper
docs: Marshal the return value of the decorated view function using the
      specified schema.
  
      Usage:
  
      .. code-block:: python
  
          class PetSchema(Schema):
              class Meta:
                  fields = ('name', 'category')
  
          @marshal_with(PetSchema)
          def get_pet(pet_id):
              return Pet.query.filter(Pet.id == pet_id).one()
  
      :param schema: :class:`Schema <marshmallow.Schema>` class or instance, or `None`
      :param code: Optional HTTP response code
      :param description: Optional response description
      :param inherit: Inherit schemas from parent classes
      :param apply: Marshal response with specified schema