code: func getNodeImageStates(node *v1.Node, imageExistenceMap map[string]sets.String) map[string]*ImageStateSummary {
  	imageStates := make(map[string]*ImageStateSummary)
  
  	for _, image := range node.Status.Images {
  		for _, name := range image.Names {
  			imageStates[name] = &ImageStateSummary{
  				Size:     image.SizeBytes,
  				NumNodes: len(imageExistenceMap[name]),
  			}
  		}
  	}
  	return imageStates
  }
docs: // getNodeImageStates returns the given node's image states based on the given imageExistence map.