<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def handle(self, msg_type):
 """ Set handler for specific message type :Example: """


        def wrap(callback):
            self._handlers[msg_type] = callback
            return callback

        return wrap