def create_session(self):
url = self.build_url(self._endpoints.get('<STR_LIT>'))<EOL>response = self.con.post(url, data={'<STR_LIT>': self.persist})<EOL>if not response:<EOL><INDENT>raise RuntimeError('<STR_LIT>')<EOL><DEDENT>data = response.json()<EOL>self.session_id = data.get('<STR_LIT:id>')<EOL>return True<EOL>
Request a new session id