code: func (m *ManagerImpl) Allocate(node *schedulernodeinfo.NodeInfo, attrs *lifecycle.PodAdmitAttributes) error {
  	pod := attrs.Pod
  	err := m.allocatePodResources(pod)
  	if err != nil {
  		klog.Errorf("Failed to allocate device plugin resource for pod %s: %v", string(pod.UID), err)
  		return err
  	}
  
  	m.mutex.Lock()
  	defer m.mutex.Unlock()
  
  	// quick return if no pluginResources requested
  	if _, podRequireDevicePluginResource := m.podDevices[string(pod.UID)]; !podRequireDevicePluginResource {
  		return nil
  	}
  
  	m.sanitizeNodeAllocatable(node)
  	return nil
  }
docs: // Allocate is the call that you can use to allocate a set of devices
  // from the registered device plugins.