<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _onMethodTimeout(self, serial, d):
 """ Called when a remote method invocation timeout occurs """

        del self._pendingCalls[serial]
        d.errback(error.TimeOut('Method call timed out'))