code: func (cache *schedulerCache) removeNodeImageStates(node *v1.Node) {
  	if node == nil {
  		return
  	}
  
  	for _, image := range node.Status.Images {
  		for _, name := range image.Names {
  			state, ok := cache.imageStates[name]
  			if ok {
  				state.nodes.Delete(node.Name)
  				if len(state.nodes) == 0 {
  					// Remove the unused image to make sure the length of
  					// imageStates represents the total number of different
  					// images on all nodes
  					delete(cache.imageStates, name)
  				}
  			}
  		}
  	}
  }
docs: // removeNodeImageStates removes the given node record from image entries having the node
  // in imageStates cache. After the removal, if any image becomes free, i.e., the image
  // is no longer available on any node, the image entry will be removed from imageStates.