<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def ledger_transactions(self, ledger_id, cursor=None, order='asc', include_failed=False, limit=10):
 """This endpoint represents all transactions in a given ledger. `GET /ledgers/{id}/transactions{?cursor,limit,order} <https://www.stellar.org/developers/horizon/reference/endpoints/transactions-for-ledger.html>`_ :param int ledger_id: The id of the ledger to look up. :param int cursor: A paging token, specifying where to start returning records from. :param str order: The order in which to return rows, "asc" or "desc". :param int limit: Maximum number of records to return. :param bool include_failed: Set to `True` to include failed transactions in results. :return: The transactions contained in a single ledger. :rtype: dict """

        endpoint = '/ledgers/{ledger_id}/transactions'.format(
            ledger_id=ledger_id)
        params = self.__query_params(cursor=cursor, order=order, limit=limit, include_failed=include_failed)
        return self.query(endpoint, params)