code: def copy(self, version=None, flag=None, tx_ins=None,
               tx_outs=None, tx_witnesses=None, lock_time=None):
          '''
          Tx, byte-like, byte-like, list(TxIn),
          list(TxOut), list(InputWitness), byte-like -> Tx
  
          Makes a copy. Allows over-writing specific pieces.
          '''
          return Tx(version=version if version is not None else self.version,
                    flag=flag if flag is not None else self.flag,
                    tx_ins=tx_ins if tx_ins is not None else self.tx_ins,
                    tx_outs=tx_outs if tx_outs is not None else self.tx_outs,
                    tx_witnesses=(tx_witnesses if tx_witnesses is not None
                                  else self.tx_witnesses),
                    lock_time=(lock_time if lock_time is not None
                               else self.lock_time)f copy(self, version=None, flag=None, tx_ins=None,
               tx_outs=None, tx_witnesses=None, lock_time=None):
          '''
          Tx, byte-like, byte-like, list(TxIn),
          list(TxOut), list(InputWitness), byte-like -> Tx
  
          Makes a copy. Allows over-writing specific pieces.
          '''
          return Tx(version=version if version is not None else self.version,
                    flag=flag if flag is not None else self.flag,
                    tx_ins=tx_ins if tx_ins is not None else self.tx_ins,
                    tx_outs=tx_outs if tx_outs is not None else self.tx_outs,
                    tx_witnesses=(tx_witnesses if tx_witnesses is not None
                                  else self.tx_witnesses),
                    lock_time=(lock_time if lock_time is not None
                               else self.lock_time))
docs: Tx, byte-like, byte-like, list(TxIn),
          list(TxOut), list(InputWitness), byte-like -> Tx
  
          Makes a copy. Allows over-writing specific pieces.