code: def make_outpoint(tx_id_le, index, tree=None):
      '''
      byte-like, int, int -> Outpoint
      '''
      if 'decred' in riemann.get_current_network_name():
          return tx.DecredOutpoint(tx_id=tx_id_le,
                                   index=utils.i2le_padded(index, 4),
                                   tree=utils.i2le_padded(tree, 1))
      return tx.Outpoint(tx_id=tx_id_le,
                         index=utils.i2le_padded(index, 4)f make_outpoint(tx_id_le, index, tree=None):
      '''
      byte-like, int, int -> Outpoint
      '''
      if 'decred' in riemann.get_current_network_name():
          return tx.DecredOutpoint(tx_id=tx_id_le,
                                   index=utils.i2le_padded(index, 4),
                                   tree=utils.i2le_padded(tree, 1))
      return tx.Outpoint(tx_id=tx_id_le,
                         index=utils.i2le_padded(index, 4))
docs: byte-like, int, int -> Outpoint