@extract_id(Ticket)<EOL><INDENT>def audits(self, ticket=None, include=None, **kwargs):<DEDENT>
if ticket is not None:<EOL><INDENT>return self._query_zendesk(self.endpoint.audits, '<STR_LIT>', id=ticket, include=include)<EOL><DEDENT>else:<EOL><INDENT>return self._query_zendesk(self.endpoint.audits.cursor, '<STR_LIT>', include=include, **kwargs)<EOL><DEDENT>
Retrieve TicketAudits. If ticket is passed, return the tickets for a specific audit.

If ticket_id is None, a TicketAuditGenerator is returned to handle pagination. The way this generator
works is a different to the other Zenpy generators as it is cursor based, allowing you to change the
direction that you are consuming objects. This is done with the reversed() python method.

For example:

.. code-block:: python

    for audit in reversed(zenpy_client.tickets.audits()):
        print(audit)

See the `Zendesk docs <https://developer.zendesk.com/rest_api/docs/core/ticket_audits#pagination>`__ for
information on additional parameters.

:param include: list of objects to sideload. `Side-loading API Docs 
    <https://developer.zendesk.com/rest_api/docs/core/side_loading>`__.
:param ticket: Ticket object or id