def METHOD_NAME(self, connection: ASGIConnection) -> Callable[[Message], Awaitable[None]]:
    """Create a wrapper for the ASGI send function, which handles setting the cookies on the outgoing response.
    Args:
        connection: ASGIConnection
    Returns:
        None
    """
    async def wrapped_send(message: Message) -> None:
        """Wrap the ``send`` function.
        Declared in local scope to make use of closure values.
        Args:
            message: An ASGI message.
        Returns:
            None
        """
        if message["type"] != "http.response.start":
            await connection.send(message)
            return
        scope_session = connection.scope.get("session")
        await self.backend.store_in_message(scope_session, message, connection)
        await connection.send(message)
    return wrapped_send