<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def export(self, id, exclude_captures=False):
 # pylint: disable=invalid-name,redefined-builtin """Export a result. :param id: Result ID as an int. :param exclude_captures: If bool `True`, don't export capture files :rtype: tuple `(io.BytesIO, 'filename')` """

        return self.service.export(self.base, id, params={'exclude_captures': exclude_captures})