def commit(self):
url = self.api_endpoints['<STR_LIT>']<EOL>payload = {<EOL>'<STR_LIT>': self._bulk_query,<EOL>}<EOL>payload.update(self._payload)<EOL>self._bulk_query = []<EOL>return self._make_request(<EOL>url,<EOL>json.dumps(payload),<EOL>headers={'<STR_LIT>': '<STR_LIT:application/json>'},<EOL>)<EOL>
This method executes the bulk query, flushes stored queries and
returns the response