<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_notification(self, method, params):
 """Send a notification """

        msg = self._encoder.create_notification(method, params)
        self._send_message(msg)