code: def update_identity(self, identity, identity_id):
          
          route_values = {}
          if identity_id is not None:
              route_values['identityId'] = self._serialize.url('identity_id', identity_id, 'str')
          content = self._serialize.body(identity, 'Identity')
          self._send(http_method='PUT',
                     location_id='28010c54-d0c0-4c89-a5b0-1c9e188b9fb7',
                     version='5.0',
                     route_values=route_values,
                     content=content)
docs: UpdateIdentity.
          :param :class:`<Identity> <azure.devops.v5_0.identity.models.Identity>` identity:
          :param str identity_id: