def METHOD_NAME(self, txdata, window, params=None):
    consumption_tx_data = []
    exclude_inferred_receipts = params.get('exclude_invalid_periods', False) if params else False
    for tx in txdata:
        consumption_tx_data.extend(tx.get_consumption_transactions(
            exclude_inferred_receipts)
        )
    return mock_consumption(consumption_tx_data, window, params)