<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def demote_admin(self, group_jid, peer_jid):
 """ Turns an admin of a group into a regular user with no amidships capabilities. :param group_jid: The group JID in which the rights apply :param peer_jid: The admin user to demote :return: """

        log.info("[+] Demoting user {} to a regular member in group {}".format(peer_jid, group_jid))
        return self._send_xmpp_element(group_adminship.DemoteAdminRequest(group_jid, peer_jid))