def _post_request(self, url, headers, data=None):
<EOL>files = None<EOL>for field, value in data:<EOL><INDENT>if field == '<STR_LIT:file>':<EOL><INDENT>if isinstance(value, dict):<EOL><INDENT>files = value<EOL><DEDENT>else:<EOL><INDENT>files = {'<STR_LIT:file>': value}<EOL><DEDENT>break<EOL><DEDENT><DEDENT>data[:] = [tup for tup in data if tup[<NUM_LIT:0>] != '<STR_LIT:file>']<EOL>return self._session.post(url, headers=headers, data=data, files=files)<EOL>
Issue a POST request to the specified endpoint with the data provided.

:param url: str
:pararm headers: dict
:param data: dict