def get_consumption_transactions(self, exclude_inferred_receipts=False):
        from casexml.apps.stock.const import (
            TRANSACTION_TYPE_STOCKONHAND,
            TRANSACTION_TYPE_RECEIPTS,
            TRANSACTION_TYPE_CONSUMPTION
        )
        transactions = [
            ConsumptionTransaction(
                TRANSACTION_TYPE_RECEIPTS if self.delta > 0 else TRANSACTION_TYPE_CONSUMPTION,
                abs(self.delta),
                self.report_date
            )
        ]
        if self.type == LedgerTransaction.TYPE_BALANCE:
            if self.delta > 0 and exclude_inferred_receipts:
                transactions = []

            transactions.append(
                ConsumptionTransaction(
                    TRANSACTION_TYPE_STOCKONHAND,
                    self.updated_balance,
                    self.report_date
                )
            )
        return transactions
Create a file with two users.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/form_processor/models.py/LedgerTransaction.get_consumption_transactions--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/test/test_ftp_options.py/FTPOptionsTestCase.setUp