<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_data(self, data):
 """Handle JSONRPC data."""

        if 'id' in data:
            self.handle_response(data)
        else:
            self.handle_notification(data)