def METHOD_NAME():
    # type: () -> None
    version = parse_version(CHALICE_VERSION)
    if version is None:
        raise DidNotEnable("Unparsable Chalice version: {}".format(CHALICE_VERSION))
    if version < (1, 20):
        old_get_view_function_response = Chalice._get_view_function_response
    else:
        from chalice.app import RestAPIEventHandler
        old_get_view_function_response = (
            RestAPIEventHandler._get_view_function_response
        )
    def sentry_event_response(app, view_function, function_args):
        # type: (Any, F, Dict[str, Any]) -> Any
        wrapped_view_function = _get_view_function_response(
            app, view_function, function_args
        )
        return old_get_view_function_response(
            app, wrapped_view_function, function_args
        )
    if version < (1, 20):
        Chalice._get_view_function_response = sentry_event_response
    else:
        RestAPIEventHandler._get_view_function_response = sentry_event_response
    # for everything else (like events)
    chalice.app.EventSourceHandler = EventSourceHandler