code: def set_unspents(self, unspents):
          
          if len(unspents) != len(self.txs_in):
              raise ValueError("wrong number of unspents")
          self.unspents = unspents
docs: Set the unspent inputs for a transaction.
  
          :param unspents: a list of :class:`TxOut` (or the subclass :class:`Spendable`) objects
              corresponding to the :class:`TxIn` objects for this transaction (same number of
              items in each list)