def get_ledger(self, unique_ledger_reference):
        if unique_ledger_reference not in self._ledgers:
            ledger = self._get_ledger(unique_ledger_reference)
            self._ledgers[unique_ledger_reference] = ledger
        return self._ledgers[unique_ledger_reference]
dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/interfaces/ledger_processor.py/LedgerDBInterface.get_ledger/original