def METHOD_NAME():
    # type: () -> None
    original_prepare_middleware = falcon_helpers.prepare_middleware
    def sentry_patched_prepare_middleware(
        middleware=None, independent_middleware=False
    ):
        # type: (Any, Any) -> Any
        hub = Hub.current
        integration = hub.get_integration(FalconIntegration)
        if integration is not None:
            middleware = [SentryFalconMiddleware()] + (middleware or [])
        return original_prepare_middleware(middleware, independent_middleware)
    falcon_helpers.prepare_middleware = sentry_patched_prepare_middleware