Implement a function to simulate push notifications for team members while preventing duplicate messages. Each notification contains a member ID, message ID, and message text. Return the notifications delivered in input order, keeping only the first notification for each member and message ID pair. Use def simulate_notifications(notifications):, where notifications is a list of dictionaries and the result has the same format.
def simulate_notifications(notifications):