def logout(self):
if not self.logged_in:<EOL><INDENT>raise RuntimeError("<STR_LIT>")<EOL><DEDENT>if self.conn.connected:<EOL><INDENT>params = {"<STR_LIT>": self.conn.room.room_id}<EOL>resp = self.conn.make_api_call("<STR_LIT>", params)<EOL>if not resp.get("<STR_LIT:success>", False):<EOL><INDENT>raise RuntimeError(<EOL>f"<STR_LIT>"<EOL>f"<STR_LIT>"<EOL>)<EOL><DEDENT>self.conn.make_call("<STR_LIT>", params)<EOL>self.conn.cookies.pop("<STR_LIT>")<EOL><DEDENT>self.logged_in = False<EOL>
Logs your user out