code: func (cache *schedulerCache) removeNodeInfoFromList(name string) {
  	ni, ok := cache.nodes[name]
  	if !ok {
  		klog.Errorf("No NodeInfo with name %v found in the cache", name)
  		return
  	}
  
  	if ni.prev != nil {
  		ni.prev.next = ni.next
  	}
  	if ni.next != nil {
  		ni.next.prev = ni.prev
  	}
  	// if the removed item was at the head, we must update the head.
  	if ni == cache.headNode {
  		cache.headNode = ni.next
  	}
  	delete(cache.nodes, name)
  }
docs: // removeNodeInfoFromList removes a NodeInfo from the "cache.nodes" doubly
  // linked list.
  // We assume cache lock is already acquired.