code: func (cache *schedulerCache) addNodeImageStates(node *v1.Node, nodeInfo *schedulernodeinfo.NodeInfo) {
  	newSum := make(map[string]*schedulernodeinfo.ImageStateSummary)
  
  	for _, image := range node.Status.Images {
  		for _, name := range image.Names {
  			// update the entry in imageStates
  			state, ok := cache.imageStates[name]
  			if !ok {
  				state = &imageState{
  					size:  image.SizeBytes,
  					nodes: sets.NewString(node.Name),
  				}
  				cache.imageStates[name] = state
  			} else {
  				state.nodes.Insert(node.Name)
  			}
  			// create the imageStateSummary for this image
  			if _, ok := newSum[name]; !ok {
  				newSum[name] = cache.createImageStateSummary(state)
  			}
  		}
  	}
  	nodeInfo.SetImageStates(newSum)
  }
docs: // addNodeImageStates adds states of the images on given node to the given nodeInfo and update the imageStates in
  // scheduler cache. This function assumes the lock to scheduler cache has been acquired.