def legal_check(self, message):
<EOL>if message["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>logger.debug("<STR_LIT>" % (str(self.cuuid),<EOL>message["<STR_LIT>"]))<EOL>logger.debug("<STR_LIT>"<EOL>"<STR_LIT>" % (str(self.cuuid), message["<STR_LIT>"]))<EOL>if message["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>self.event_confirmations[<EOL>message["<STR_LIT>"]] = self.event_uuids[message["<STR_LIT>"]]<EOL>logger.debug("<STR_LIT>"<EOL>"<STR_LIT>" % (str(self.cuuid),<EOL>message["<STR_LIT>"]))<EOL>logger.debug("<STR_LIT>"<EOL>"<STR_LIT>" % (str(self.cuuid),<EOL>message["<STR_LIT>"],<EOL>pformat(self.event_confirmations)))<EOL><DEDENT>try:<EOL><INDENT>del self.event_uuids[message["<STR_LIT>"]]<EOL><DEDENT>except KeyError:<EOL><INDENT>logger.warning("<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>" % (str(self.cuuid), message["<STR_LIT>"]))<EOL><DEDENT><DEDENT>elif message["<STR_LIT>"] == "<STR_LIT>":<EOL><INDENT>logger.debug("<STR_LIT>" % (str(self.cuuid),<EOL>message["<STR_LIT>"]))<EOL>logger.debug("<STR_LIT>"<EOL>"<STR_LIT>" % (str(self.cuuid),<EOL>message["<STR_LIT>"]))<EOL>self.event_rollbacks[<EOL>message["<STR_LIT>"]] = self.event_uuids[message["<STR_LIT>"]]<EOL>del self.event_uuids[message["<STR_LIT>"]]<EOL><DEDENT>
This method handles event legality check messages from the server.

        Args:
          message (dict): The unserialized legality dictionary received from
            the server.

        Returns:
          None

        Examples:
          >>> message