<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def spy(self):
        '''
        Add a spy to this stub. Return the spy.
        '''
        spy = Spy(self)
        self._expectations.append(spy)
        return spy