def response_class(self, cls: Type[UpdateByQueryResponse[_R]]) -> Self:
        """
        Override the default wrapper used for the response.
        """
        ubq = self._clone()
        ubq._response_class = cls
        return ubq

        Override the default wrapper used for the response.
        
elasticsearch/dsl/update_by_query_base.py