def METHOD_NAME(self, shareable: Shareable):
    if PSIConst.REQUEST_MSG in shareable:
        request_msg = shareable.get(PSIConst.REQUEST_MSG)
        response = self.psi_server.METHOD_NAME(request_msg)
        result = Shareable()
        result[PSIConst.RESPONSE_MSG] = response
        return result
    elif PSIConst.REQUEST_MSG_SET in shareable:
        request_msgs = shareable.get(PSIConst.REQUEST_MSG_SET)
        result = Shareable()
        client_responses = {}
        for client_name in request_msgs:
            response = self.psi_server.METHOD_NAME(request_msgs[client_name])
            client_responses[client_name] = response
        result[PSIConst.RESPONSE_MSG] = client_responses
    else:
        raise ValueError(
            "Required PSI Message PSIConst.PSI_REQUEST_MSG or PSIConst.PSI_REQUEST_MSG_SET is not provided"
        )
    return result