def select_inputs(self, colorvalue):
        op_tx_spec = SimpleOperationalTxSpec(self.model, None)
        if colorvalue.is_uncolored():
            composed_tx_spec = op_tx_spec.make_composed_tx_spec()
            selection, total = op_tx_spec.select_coins(colorvalue, composed_tx_spec)
            change = total - colorvalue - \
                composed_tx_spec.estimate_required_fee(extra_txins=len(selection))
            if change < op_tx_spec.get_dust_threshold():
                change = SimpleColorValue(colordef=UNCOLORED_MARKER,
                                          value=0)
            return selection, change
        else:
            selection, total = op_tx_spec.select_coins(colorvalue)
            change = total - colorvalue
            return selection, change
dataset/ETHPy150Open chromaway/ngcccbase/ngcccbase/p2ptrade/ewctrl.py/EWalletController.select_inputs/original