code: func NewNetwork(projectName, name string, config *config.NetworkConfig, client client.NetworkAPIClient) *Network {
  	networkName := name
  	if config.External.External {
  		networkName = config.External.Name
  	}
  	return &Network{
  		client:        client,
  		name:          networkName,
  		projectName:   projectName,
  		driver:        config.Driver,
  		driverOptions: config.DriverOpts,
  		external:      config.External.External,
  		ipam:          config.Ipam,
  	}
  }
docs: // NewNetwork creates a new network from the specified name and config.