code: func GetNetwork(tx ReadTx, id string) *api.Network {
  	n := tx.get(tableNetwork, id)
  	if n == nil {
  		return nil
  	}
  	return n.(*api.Network)
  }
docs: // GetNetwork looks up a network by ID.
  // Returns nil if the network doesn't exist.