code: func CreateOptionExposedPorts(exposedPorts []types.TransportPort) EndpointOption {
  	return func(ep *endpoint) {
  		// Defensive copy
  		eps := make([]types.TransportPort, len(exposedPorts))
  		copy(eps, exposedPorts)
  		// Store endpoint label and in generic because driver needs it
  		ep.exposedPorts = eps
  		ep.generic[netlabel.ExposedPorts] = eps
  	}
  }
docs: // CreateOptionExposedPorts function returns an option setter for the container exposed
  // ports option to be passed to network.CreateEndpoint() method.