code: def ban_member_from_group(self, group_jid, peer_jid):
          
          log.info("[+] Requesting ban of user {} from group {}".format(peer_jid, group_jid))
          return self._send_xmpp_element(group_adminship.BanMemberRequest(group_jid, peer_jid))
docs: Bans a member from the group
  
          :param group_jid: The JID of the relevant group
          :param peer_jid: The JID of the user to ban