code: def update_membership(self, nickname=None, **kwargs):
          
          return self.memberships.update(nickname=nickname, **kwargs)
docs: Update your own membership.
  
          Note that this fails on former groups.
  
          :param str nickname: new nickname
          :return: updated membership
          :rtype: :class:`~groupy.api.members.Member`