code: func (c *Cluster) GetNetwork(input string) (apitypes.NetworkResource, error) {
  	var network *swarmapi.Network
  
  	if err := c.lockedManagerAction(func(ctx context.Context, state nodeState) error {
  		n, err := getNetwork(ctx, state.controlClient, input)
  		if err != nil {
  			return err
  		}
  		network = n
  		return nil
  	}); err != nil {
  		return apitypes.NetworkResource{}, err
  	}
  	return convert.BasicNetworkFromGRPC(*network), nil
  }
docs: // GetNetwork returns a cluster network by an ID.