def METHOD_NAME(self, req_id, method, params):
    response = None
    if method in self.sender_registry:
        logger.debug('Perform request {0} with id {1}'.format(
            method, req_id))
        handler_name = self.sender_registry[method]
        handler = getattr(self, handler_name)
        response = handler(params)
        if method in self.handler_registry:
            converter_name = self.handler_registry[method]
            converter = getattr(self, converter_name)
            if response is not None:
                response = converter(response)
    if not isinstance(response, (dict, type(None))):
        if not running_under_pytest():
            self.sig_client_wrong_response.emit(method, response)
    else:
        self.sig_response_ready.emit(req_id, response or {})