code: func NewDevicePluginStub(devs []*pluginapi.Device, socket string, name string, preStartContainerFlag bool) *Stub {
  	return &Stub{
  		devs:                  devs,
  		socket:                socket,
  		resourceName:          name,
  		preStartContainerFlag: preStartContainerFlag,
  
  		stop:   make(chan interface{}),
  		update: make(chan []*pluginapi.Device),
  
  		allocFunc: defaultAllocFunc,
  	}
  }
docs: // NewDevicePluginStub returns an initialized DevicePlugin Stub.