

@staticmethod
def _collect_colored_outputs(unspent_outputs, asset_id, asset_quantity):
    '\n        Returns a list of colored outputs for the specified quantity.\n\n        :param list[SpendableOutput] unspent_outputs: The list of available outputs.\n        :param bytes asset_id: The ID of the asset to collect.\n        :param int asset_quantity: The asset quantity to collect.\n        :return: A list of outputs, and the total asset quantity collected.\n        :rtype: (list[SpendableOutput], int)\n        '
    total_amount = 0
    result = []
    for output in unspent_outputs:
        if (unspent_outputs.output.asset_id == asset_id):
            result.append(output)
            total_amount += output.output.asset_quantity
        if (total_amount >= asset_quantity):
            return (result, total_amount)
    raise InsufficientAssetQuantityError

dataset/ETHPy150Open OpenAssets/openassets/openassets/transactions.py TransactionBuilder._collect_colored_outputs/VarMisuse@37/205 `output`->`unspent_outputs`