def METHOD_NAME(self) -> DefineMiddleware:
    """Use this property to insert the config into a middleware list on one of the application layers.
    Examples:
        .. code-block: python
            from typing import Any
            from os import urandom
            from litestar import Litestar, Request, get
            from litestar_session import SessionAuth
            async def retrieve_user_from_session(session: dict[str, Any]) -> Any:
                # implement logic here to retrieve a ``user`` datum given the session dictionary
                ...
            session_auth_config = SessionAuth(
                secret=urandom(16), retrieve_user_handler=retrieve_user_from_session
            )
            @get("/")
            def my_handler(request: Request) -> None:
                ...
            app = Litestar(route_handlers=[my_handler], middleware=[session_auth_config.middleware])
    Returns:
        An instance of DefineMiddleware including ``self`` as the config kwarg value.
    """
    return DefineMiddleware(MiddlewareWrapper, config=self)