code: func (c *Cluster) GetNetworksByName(name string) ([]apitypes.NetworkResource, error) {
  	// Note that swarmapi.GetNetworkRequest.Name is not functional.
  	// So we cannot just use that with c.GetNetwork.
  	return c.getNetworks(&swarmapi.ListNetworksRequest_Filters{
  		Names: []string{name},
  	})
  }
docs: // GetNetworksByName returns cluster managed networks by name.
  // It is ok to have multiple networks here. #18864