<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, user, identity):
 """ Update specified identity for the specified user :param user: User object or id :param identity: Identity object to be updated. :return: The updated Identity """

        return UserIdentityRequest(self).put(self.endpoint.update, user, identity)