code: func (c *CNIConfig) ValidateNetwork(ctx context.Context, net *NetworkConfig) ([]string, error) {
  	caps := []string{}
  	for c, ok := range net.Network.Capabilities {
  		if ok {
  			caps = append(caps, c)
  		}
  	}
  	if err := c.validatePlugin(ctx, net.Network.Type, net.Network.CNIVersion); err != nil {
  		return nil, err
  	}
  	return caps, nil
  }
docs: // ValidateNetwork checks that a configuration is reasonably valid.
  // It uses the same logic as ValidateNetworkList)
  // Returns a list of capabilities