code: func (daemon *Daemon) GetNetworkByID(id string) (libnetwork.Network, error) {
  	c := daemon.netController
  	if c == nil {
  		return nil, errors.Wrap(libnetwork.ErrNoSuchNetwork(id), "netcontroller is nil")
  	}
  	return c.NetworkByID(id)
  }
docs: // GetNetworkByID function returns a network whose ID matches the given ID.
  // It fails with an error if no matching network is found.