code: func (m *Stub) Allocate(ctx context.Context, r *pluginapi.AllocateRequest) (*pluginapi.AllocateResponse, error) {
  	log.Printf("Allocate, %+v", r)
  
  	devs := make(map[string]pluginapi.Device)
  
  	for _, dev := range m.devs {
  		devs[dev.ID] = *dev
  	}
  
  	return m.allocFunc(r, devs)
  }
docs: // Allocate does a mock allocation