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

def resetPassword(self, userId):
    '''
    Changes a user's password to a system-generated value.
    '''
    self._setHeaders('resetPassword')
    return self._sforce.service.resetPassword(userId)