What is the primary purpose of the function DBMS_PIPE.RECEIVE_MESSAGE in a database management system?